Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v3.1.0) is shown here.
unserialize_attribute(attr_name)
public
Returns the unserialized object of the attribute.
# File activerecord/lib/active_record/attribute_methods/read.rb, line 133
def unserialize_attribute(attr_name)
coder = self.class.serialized_attributes[attr_name]
unserialized_object = coder.load(@attributes[attr_name])
@attributes.frozen? ? unserialized_object : @attributes[attr_name] = unserialized_object
end