Flowdock
method

decode

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: YAMLEncoder
decode(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 22
      def decode(coder)
        if coder["attributes"]
          coder["attributes"]
        else
          attributes_hash = Hash[coder["concise_attributes"].map do |attr|
            if attr.type.nil?
              attr = attr.with_type(default_types[attr.name])
            end
            [attr.name, attr]
          end]
          AttributeSet.new(attributes_hash)
        end
      end
Register or log in to add new notes.