Module: ActiveRecord::LegacyYamlAdapter
Do not use. This module is for internal use only.
Relationships & Source Files | |
Defined in: | activerecord/lib/active_record/legacy_yaml_adapter.rb |
Class Method Summary
Class Method Details
.convert(coder)
[ GitHub ]# File 'activerecord/lib/active_record/legacy_yaml_adapter.rb', line 5
def self.convert(coder) return coder unless coder.is_a?(Psych::Coder) case coder["active_record_yaml_version"] when 1, 2 then coder else raise("Active Record doesn't know how to load YAML with this format.") end end