Module: ActiveRecord::AttributeMethods::Serialization

Extended by:
ActiveSupport::Concern
Defined in:
lib/active_record/attribute_methods/serialization.rb

Defined Under Namespace

Modules: Behavior, ClassMethods Classes: Attribute, Type

Instance Method Summary collapse

Instance Method Details

#serialized_attributesObject

DEPRECATED: Use ActiveRecord::AttributeMethods::Serialization::ClassMethods#serialized_attributes class level method instead.



54
55
56
57
58
# File 'lib/active_record/attribute_methods/serialization.rb', line 54

def serialized_attributes
  message = "Instance level serialized_attributes method is deprecated, please use class level method."
  ActiveSupport::Deprecation.warn message
  defined?(@serialized_attributes) ? @serialized_attributes : self.class.serialized_attributes
end