From 1489303db20498a9b41e873e0ec0ad80638668ee Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Fri, 9 Nov 2012 14:39:36 +0000 Subject: fix warnings --- activerecord/lib/active_record/associations/collection_proxy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record') diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb index 1b746b46b7..e444b0ed83 100644 --- a/activerecord/lib/active_record/associations/collection_proxy.rb +++ b/activerecord/lib/active_record/associations/collection_proxy.rb @@ -28,7 +28,7 @@ module ActiveRecord # is computed directly through SQL and does not trigger by itself the # instantiation of the actual post records. class CollectionProxy < Relation - delegate *ActiveRecord::Calculations.public_instance_methods, to: :scope + delegate(*(ActiveRecord::Calculations.public_instance_methods - [:count]), to: :scope) def initialize(association) #:nodoc: @association = association -- cgit v1.2.3