lib/locomotive/steam/models/mapper.rb in locomotivecms_steam-1.0.0.pre.alpha vs lib/locomotive/steam/models/mapper.rb in locomotivecms_steam-1.0.0.pre.alpha.1

- old
+ new

@@ -76,10 +76,11 @@ private # create a proxy class for each localized attribute def build_localized_attributes(attributes) @localized_attributes.each do |name| - attributes[name] = I18nField.new(name, attributes[name]) + _name = name.to_sym + attributes[_name] = I18nField.new(_name, attributes[name.to_s] || attributes[_name]) end end # create a proxy class for each association def build_associations(attributes)