From c3bd7b57e359788b26674683fb5b1518c75f6bb1 Mon Sep 17 00:00:00 2001 From: Sean Griffin Date: Wed, 4 Jun 2014 06:43:30 -0600 Subject: Bring type casting behavior of hstore/json in line with serialized `@raw_attributes` should not contain the type-cast, mutable version of the value. --- activerecord/lib/active_record/persistence.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/persistence.rb') 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, ) -- cgit v1.2.3