method

serialized_attributes

rails latest stable - Class: ActiveRecord::AttributeMethods::Serialization::ClassMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.2.9) is shown here.

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