aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/null_relation.rb
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2015-03-17 00:56:15 -0700
committerBen Woosley <ben.woosley@gmail.com>2015-03-18 00:46:09 -0700
commit3bcb31499862d2a11bf59e449c6d0dc0930962a4 (patch)
treeb5cc86f871d5edeb93f67a7a674851d511753f15 /activerecord/lib/active_record/null_relation.rb
parent314ab7b14d99094e9cedd36165489f731841bd66 (diff)
downloadrails-3bcb31499862d2a11bf59e449c6d0dc0930962a4.tar.gz
rails-3bcb31499862d2a11bf59e449c6d0dc0930962a4.tar.bz2
rails-3bcb31499862d2a11bf59e449c6d0dc0930962a4.zip
Fix NullRelation.update_all and .exists? signature to match the same on Relation
Diffstat (limited to 'activerecord/lib/active_record/null_relation.rb')
-rw-r--r--activerecord/lib/active_record/null_relation.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/null_relation.rb b/activerecord/lib/active_record/null_relation.rb
index fa6eaa7e64..74894d0c37 100644
--- a/activerecord/lib/active_record/null_relation.rb
+++ b/activerecord/lib/active_record/null_relation.rb
@@ -14,7 +14,7 @@ module ActiveRecord
0
end
- def update_all(_updates, _conditions = nil, _options = {})
+ def update_all(_updates)
0
end
@@ -80,7 +80,7 @@ module ActiveRecord
end
end
- def exists?(_id = false)
+ def exists?(_conditions = :none)
false
end