lib/yaks/mapper/attribute.rb in yaks-0.7.7 vs lib/yaks/mapper/attribute.rb in yaks-0.8.0.alpha

- old
+ new

@@ -2,14 +2,14 @@ class Mapper class Attribute include Attributes.new(:name) def initialize(name) - @name = name + super(name: name) end def add_to_resource(resource, mapper, _context) - resource.update_attributes(name => mapper.load_attribute(name)) + resource.merge_attributes(name => mapper.load_attribute(name)) end end end end