diff options
author | José Valim <jose.valim@gmail.com> | 2010-02-28 11:39:39 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-02-28 11:39:39 +0100 |
commit | 32afcdcb889e651b13e161a04c4d6d2ea78a652f (patch) | |
tree | 071ef0df44d7620ef4b581f6a7eebac00ffd64d2 /activemodel/lib/active_model | |
parent | 6ffc8364dc7cc40312364f2e5978021c3e7d8ab9 (diff) | |
download | rails-32afcdcb889e651b13e161a04c4d6d2ea78a652f.tar.gz rails-32afcdcb889e651b13e161a04c4d6d2ea78a652f.tar.bz2 rails-32afcdcb889e651b13e161a04c4d6d2ea78a652f.zip |
ActiveModel::Lint should not require our models to respond to id.
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r-- | activemodel/lib/active_model/lint.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/lint.rb b/activemodel/lib/active_model/lint.rb index 0e62e131a3..13ddb622d1 100644 --- a/activemodel/lib/active_model/lint.rb +++ b/activemodel/lib/active_model/lint.rb @@ -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> |