aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-11-09 14:39:36 +0000
committerJon Leighton <j@jonathanleighton.com>2012-11-09 14:40:15 +0000
commit1489303db20498a9b41e873e0ec0ad80638668ee (patch)
tree0ed8d4824ace29ddfbe450f79b0e2a40f7827817 /activerecord
parentc3ca7ac09e960fa1287adc730e8ddc713e844c37 (diff)
downloadrails-1489303db20498a9b41e873e0ec0ad80638668ee.tar.gz
rails-1489303db20498a9b41e873e0ec0ad80638668ee.tar.bz2
rails-1489303db20498a9b41e873e0ec0ad80638668ee.zip
fix warnings
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/associations/collection_proxy.rb2
1 files changed, 1 insertions, 1 deletions
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