提交 1489303d 编写于 作者: J Jon Leighton

fix warnings

上级 c3ca7ac0
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册