aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/query_methods.rb
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2017-07-16 10:09:57 +0200
committerGitHub <noreply@github.com>2017-07-16 10:09:57 +0200
commitf3d67e67abc1fc40b691372af318ede8e30fc4bf (patch)
tree301350f925e10f533c75923585a0f84d99828897 /activerecord/lib/active_record/relation/query_methods.rb
parent1766e8e6ff9133b8254937791d48eedf2a3f7864 (diff)
parent01c85097d4977b0c141b7c89df15c0750f37c62d (diff)
downloadrails-f3d67e67abc1fc40b691372af318ede8e30fc4bf.tar.gz
rails-f3d67e67abc1fc40b691372af318ede8e30fc4bf.tar.bz2
rails-f3d67e67abc1fc40b691372af318ede8e30fc4bf.zip
Merge pull request #29771 from kamipo/fix_create_with_using_both_string_and_symbol
Fix `create_with` using both string and symbol
Diffstat (limited to 'activerecord/lib/active_record/relation/query_methods.rb')
-rw-r--r--activerecord/lib/active_record/relation/query_methods.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb
index 79495ead91..9d6db3dc64 100644
--- a/activerecord/lib/active_record/relation/query_methods.rb
+++ b/activerecord/lib/active_record/relation/query_methods.rb
@@ -797,7 +797,7 @@ module ActiveRecord
value = sanitize_forbidden_attributes(value)
self.create_with_value = create_with_value.merge(value)
else
- self.create_with_value = {}
+ self.create_with_value = FROZEN_EMPTY_HASH
end
self