Permalink
Browse files

fix warnings

  • Loading branch information...
1 parent c3ca7ac commit 1489303db20498a9b41e873e0ec0ad80638668ee @jonleighton jonleighton committed Nov 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations/collection_proxy.rb
@@ -28,7 +28,7 @@ module Associations
# 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

0 comments on commit 1489303

Please sign in to comment.