Flowdock
method

encode

Importance_0
v5.2.3 - 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.