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:
parent
6ffc8364dc
commit
32afcdcb88
1 changed files with 0 additions and 2 deletions
|
@ -22,8 +22,6 @@ module ActiveModel
|
||||||
assert model.respond_to?(:to_key), "The model should respond to to_key"
|
assert model.respond_to?(:to_key), "The model should respond to to_key"
|
||||||
def model.persisted?() false end
|
def model.persisted?() false end
|
||||||
assert model.to_key.nil?
|
assert model.to_key.nil?
|
||||||
def model.persisted?() true end
|
|
||||||
assert model.to_key.respond_to?(:each)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Responds to <tt>to_param</tt>
|
# == Responds to <tt>to_param</tt>
|
||||||
|
|
Loading…
Reference in a new issue