From 3bcb31499862d2a11bf59e449c6d0dc0930962a4 Mon Sep 17 00:00:00 2001 From: Ben Woosley Date: Tue, 17 Mar 2015 00:56:15 -0700 Subject: Fix NullRelation.update_all and .exists? signature to match the same on Relation --- activerecord/lib/active_record/null_relation.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activerecord') 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 -- cgit v1.2.3