diff options
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/core.rb | 4 |
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 |