aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2010-01-20 03:40:37 +0530
committerPratik Naik <pratiknaik@gmail.com>2010-01-20 03:40:37 +0530
commit565b4cd3e08c148a6c8f2e80c28029c6a8a51e6e (patch)
tree81e72d2814342acf8602c4929e218262bd2acc0f /activerecord
parent52ec4311f5bf8b596612f297da0b3be8e284b038 (diff)
downloadrails-565b4cd3e08c148a6c8f2e80c28029c6a8a51e6e.tar.gz
rails-565b4cd3e08c148a6c8f2e80c28029c6a8a51e6e.tar.bz2
rails-565b4cd3e08c148a6c8f2e80c28029c6a8a51e6e.zip
Scope#find is no longer needed now that Relation#find handles all the cases
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/named_scope.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/activerecord/lib/active_record/named_scope.rb b/activerecord/lib/active_record/named_scope.rb
index 2f3044d06b..d606934dce 100644
--- a/activerecord/lib/active_record/named_scope.rb
+++ b/activerecord/lib/active_record/named_scope.rb
@@ -148,18 +148,6 @@ module ActiveRecord
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)