Please sign in to comment.
- Loading branch information...
Showing with 1 addition and 1 deletion.
|@@ -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|