Browse files

Fixed that the overwritten respond_to? method didn't take two paramet…

…ers like the original #391

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@327 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 846f0d5 commit 5ac11f2de36e301c936cc552cffa334bf6ec2932 @dhh dhh committed Jan 3, 2005
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/associations/association_collection.rb
View
4 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?

0 comments on commit 5ac11f2

Please sign in to comment.