提交 565b4cd3 编写于 作者: P Pratik Naik

Scope#find is no longer needed now that Relation#find handles all the cases

上级 52ec4311
......@@ -148,18 +148,6 @@ def self.init(klass, options, &block)
relation
end
def find(*args)
options = args.extract_options!
relation = options.present? ? apply_finder_options(options) : self
case args.first
when :first, :last, :all
relation.send(args.first)
else
options.present? ? relation.find(*args) : super
end
end
def first(*args)
if args.first.kind_of?(Integer) || (loaded? && !args.first.kind_of?(Hash))
to_a.first(*args)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册