# File activerecord/lib/active_record/base.rb, line 1568def unserialize_attribute(attr_name)unserialized_object=object_from_yaml(@attributes[attr_name])ifunserialized_object.is_a?(self.class.serialized_attributes[attr_name])@attributes[attr_name]=unserialized_objectelseraiseSerializationTypeMismatch,"#{attr_name} was supposed to be a #{self.class.serialized_attributes[attr_name]}, but was a #{unserialized_object.class.to_s}"endend