module ActiveRecord::AttributeMethods::Serialization

def serialized_attributes

*DEPRECATED*: Use ActiveRecord::AttributeMethods::Serialization::ClassMethods#serialized_attributes class level method instead.
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