method

attributes_for_coder

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

Method deprecated or moved

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

attributes_for_coder()
public

No documentation available.

# File activerecord/lib/active_record/attribute_methods/serialization.rb, line 192
        def attributes_for_coder
          attribute_names.each_with_object({}) do |name, attrs|
            attrs[name] = if self.class.serialized_attributes.include?(name)
                            @attributes[name].serialized_value
                          else
                            read_attribute(name)
                          end
          end
        end