Flowdock
method

convert

Importance_0
v4.2.7 - Show latest stable - 0 notes - Class: LegacyYamlAdapter
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 3
    def self.convert(klass, coder)
      return coder unless coder.is_a?(Psych::Coder)

      case coder["active_record_yaml_version"]
      when 0 then coder
      else
        if coder["attributes"].is_a?(AttributeSet)
          coder
        else
          Rails41.convert(klass, coder)
        end
      end
    end
Register or log in to add new notes.