diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2015-03-17 00:56:15 -0700 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2015-03-18 00:46:09 -0700 |
commit | 3bcb31499862d2a11bf59e449c6d0dc0930962a4 (patch) | |
tree | b5cc86f871d5edeb93f67a7a674851d511753f15 /activerecord/lib | |
parent | 314ab7b14d99094e9cedd36165489f731841bd66 (diff) | |
download | rails-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')
-rw-r--r-- | activerecord/lib/active_record/null_relation.rb | 4 |
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 |