From 5ac11f2de36e301c936cc552cffa334bf6ec2932 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 3 Jan 2005 23:24:31 +0000 Subject: [PATCH] Fixed that the overwritten respond_to? method didn't take two parameters like the original #391 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@327 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../lib/active_record/associations/association_collection.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activerecord/lib/active_record/associations/association_collection.rb b/activerecord/lib/active_record/associations/association_collection.rb index 6303ada87b..6283f3dc28 100644 --- a/activerecord/lib/active_record/associations/association_collection.rb +++ b/activerecord/lib/active_record/associations/association_collection.rb @@ -22,8 +22,8 @@ def to_ary @collection.to_ary end - def respond_to?(symbol) - proxy_respond_to?(symbol) || [].respond_to?(symbol) + def respond_to?(symbol, include_priv = false) + proxy_respond_to?(symbol, include_priv) || [].respond_to?(symbol, include_priv) end def loaded? -- GitLab