method

encode

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: YAMLEncoder
encode(attribute_set, coder) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activemodel/lib/active_model/attribute_set/yaml_encoder.rb, line 12
      def encode(attribute_set, coder)
        coder["concise_attributes"] = attribute_set.each_value.map do |attr|
          if attr.type.equal?(default_types[attr.name])
            attr.with_type(nil)
          else
            attr
          end
        end
      end
Register or log in to add new notes.