diff options
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/associations/association_collection.rb | 4 |
1 files 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 @@ module ActiveRecord @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? |