From 32afcdcb889e651b13e161a04c4d6d2ea78a652f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Sun, 28 Feb 2010 11:39:39 +0100 Subject: ActiveModel::Lint should not require our models to respond to id. --- activemodel/lib/active_model/lint.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'activemodel/lib') 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 to_param -- cgit v1.2.3