1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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>