aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/null_relation.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-12-11 13:35:34 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-12-11 13:35:34 -0200
commit929c2261cdb279d6184cc288d7ab014c1414799c (patch)
treeabe12902db4cdb7c39abcc70de26136b41f2e694 /activerecord/lib/active_record/null_relation.rb
parente1ce005942f20c4f64cf78a0dc15e662e0353f3b (diff)
downloadrails-929c2261cdb279d6184cc288d7ab014c1414799c.tar.gz
rails-929c2261cdb279d6184cc288d7ab014c1414799c.tar.bz2
rails-929c2261cdb279d6184cc288d7ab014c1414799c.zip
Mark the arguments needed by activerecord-deprecated_finders with a TODO
Diffstat (limited to 'activerecord/lib/active_record/null_relation.rb')
-rw-r--r--activerecord/lib/active_record/null_relation.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/null_relation.rb b/activerecord/lib/active_record/null_relation.rb
index 62c6bbc413..5b255c3fe5 100644
--- a/activerecord/lib/active_record/null_relation.rb
+++ b/activerecord/lib/active_record/null_relation.rb
@@ -50,8 +50,10 @@ module ActiveRecord
0
end
- def calculate(_operation, _column_name, _options = {})
- if _operation == :count
+ def calculate(operation, _column_name, _options = {})
+ # TODO: Remove _options argument as soon we remove support to
+ # activerecord-deprecated_finders.
+ if operation == :count
0
else
nil