aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/persistence.rb
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-06-06 14:11:54 +0200
committerYves Senn <yves.senn@gmail.com>2014-06-06 14:11:54 +0200
commit485dab41c4ff7de392ffba132fbcbff49e6fe9ef (patch)
treef28e2819a4d2c8d195ea3807acafe2369ef8421d /activerecord/lib/active_record/persistence.rb
parent8d77436f374acf06b46d1e0615b364ebd8acae8d (diff)
parentc3bd7b57e359788b26674683fb5b1518c75f6bb1 (diff)
downloadrails-485dab41c4ff7de392ffba132fbcbff49e6fe9ef.tar.gz
rails-485dab41c4ff7de392ffba132fbcbff49e6fe9ef.tar.bz2
rails-485dab41c4ff7de392ffba132fbcbff49e6fe9ef.zip
Merge pull request #15503 from sgrif/sg-json-hstore-storage
Bring type casting behavior of hstore/json in line with serialized
Diffstat (limited to 'activerecord/lib/active_record/persistence.rb')
-rw-r--r--activerecord/lib/active_record/persistence.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb
index 2e3bcc0956..f1f0d3e57f 100644
--- a/activerecord/lib/active_record/persistence.rb
+++ b/activerecord/lib/active_record/persistence.rb
@@ -50,7 +50,7 @@ module ActiveRecord
klass = discriminate_class_for_record(attributes)
column_types = klass.decorate_columns(column_types.dup)
klass.allocate.init_with(
- 'attributes' => attributes,
+ 'raw_attributes' => attributes,
'column_types' => column_types,
'new_record' => false,
)