aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2010-01-20 01:35:20 +0530
committerPratik Naik <pratiknaik@gmail.com>2010-01-20 01:35:20 +0530
commitd8c30723aad943da20fed36cceedba6225122a3a (patch)
tree1cff6aed5b1242fff60ec7111dda1d63f2d5ca9f /activerecord/lib
parent1b78a3f8d5417708eb7040cc00722494eaa6a2b5 (diff)
downloadrails-d8c30723aad943da20fed36cceedba6225122a3a.tar.gz
rails-d8c30723aad943da20fed36cceedba6225122a3a.tar.bz2
rails-d8c30723aad943da20fed36cceedba6225122a3a.zip
Named scopes dont need count() now that Relation#count handles all the cases
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/named_scope.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/named_scope.rb b/activerecord/lib/active_record/named_scope.rb
index f1b8822892..2f3044d06b 100644
--- a/activerecord/lib/active_record/named_scope.rb
+++ b/activerecord/lib/active_record/named_scope.rb
@@ -176,11 +176,6 @@ module ActiveRecord
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