ActiveModel::Lint should not require our models to respond to id.

This commit is contained in:
José Valim
2010-02-28 11:39:39 +01:00
parent 6ffc8364dc
commit 32afcdcb88

View File

@@ -22,8 +22,6 @@ module ActiveModel
assert model.respond_to?(:to_key), "The model should respond to to_key"
def model.persisted?() false end
assert model.to_key.nil?
def model.persisted?() true end
assert model.to_key.respond_to?(:each)
end
# == Responds to <tt>to_param</tt>