diff options
Diffstat (limited to 'activerecord/lib/active_record/xml_serialization.rb')
-rw-r--r-- | activerecord/lib/active_record/xml_serialization.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/xml_serialization.rb b/activerecord/lib/active_record/xml_serialization.rb index 7a8167534d..ff7720d786 100644 --- a/activerecord/lib/active_record/xml_serialization.rb +++ b/activerecord/lib/active_record/xml_serialization.rb @@ -275,7 +275,7 @@ module ActiveRecord #:nodoc: protected def compute_type - type = @record.class.columns_hash[name].type + type = @record.class.serialized_attributes.has_key?(name) ? :yaml : @record.class.columns_hash[name].type case type when :text |