aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/core.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb
index 941ff6bffd..7d81934526 100644
--- a/activerecord/lib/active_record/core.rb
+++ b/activerecord/lib/active_record/core.rb
@@ -148,7 +148,9 @@ module ActiveRecord
hash = args.first
- return super if hash.values.any? { |v| v.nil? || Array === v }
+ return super if hash.values.any? { |v|
+ v.nil? || Array === v || Hash === v
+ }
key = hash.keys