diff --git a/activerecord/lib/active_record/associations/association_collection.rb b/activerecord/lib/active_record/associations/association_collection.rb index 6303ada87bd47cb64647d865d887a1a0cf2e32a3..6283f3dc281ee66b9ed5a2dfadd3c683d6bea466 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?