Skip to content
Browse files

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

… cases
  • Loading branch information...
1 parent 52ec431 commit 565b4cd3e08c148a6c8f2e80c28029c6a8a51e6e @lifo lifo committed Jan 20, 2010
Showing with 0 additions and 12 deletions.
  1. +0 −12 activerecord/lib/active_record/named_scope.rb
View
12 activerecord/lib/active_record/named_scope.rb
@@ -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)

0 comments on commit 565b4cd

Please sign in to comment.
Something went wrong with that request. Please try again.