instance method
serialized_attributes
Ruby on Rails 4.2.9
Since v4.0.13 Last seen in v4.2.9Signature
serialized_attributes()
No documentation comment.
Source
# File activerecord/lib/active_record/attribute_methods/serialization.rb, line 55
def serialized_attributes
ActiveSupport::Deprecation.warn(<<-MSG.squish)
`serialized_attributes` is deprecated without replacement, and will
be removed in Rails 5.0.
MSG
@serialized_attributes ||= Hash[
columns.select { |t| t.cast_type.is_a?(Type::Serialized) }.map { |c|
[c.name, c.cast_type.coder]
}
]
end
Defined in activerecord/lib/active_record/attribute_methods/serialization.rb line 55
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AttributeMethods::Serialization::ClassMethods