提交 d8c30723 编写于 作者: P Pratik Naik

Named scopes dont need count() now that Relation#count handles all the cases

上级 1b78a3f8
......@@ -176,11 +176,6 @@ def last(*args)
end
end
def count(*args)
options = args.extract_options!
options.present? ? apply_finder_options(options).count(*args) : super
end
def ==(other)
other.respond_to?(:to_a) ? to_a == other.to_a : false
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册