method
serialized_attributes
v4.2.9 -
Show latest stable
- Class:
ActiveRecord::AttributeMethods::Serialization::ClassMethods
serialized_attributes()public
No documentation available.
# File activerecord/lib/active_record/attribute_methods/serialization.rb, line 55
def serialized_attributes
ActiveSupport::Deprecation.warn( `serialized_attributes` is deprecated without replacement, and will be removed in Rails 5.0..squish)
@serialized_attributes ||= Hash[
columns.select { |t| t.cast_type.is_a?(Type::Serialized) }.map { |c|
[c.name, c.cast_type.coder]
}
]
end