Flowdock
method

convert

Importance_0
v4.2.7 - Show latest stable - 0 notes - Class: Rails41
convert(klass, coder) public

No documentation

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

Hide source
# File activerecord/lib/active_record/legacy_yaml_adapter.rb, line 18
      def self.convert(klass, coder)
        attributes = klass.attributes_builder
          .build_from_database(coder["attributes"])
        new_record = coder["attributes"][klass.primary_key].blank?

        {
          "attributes" => attributes,
          "new_record" => new_record,
        }
      end
Register or log in to add new notes.