lib/yaks/mapper/association_mapper.rb in yaks-0.6.0.alpha.1 vs lib/yaks/mapper/association_mapper.rb in yaks-0.6.0

- old
+ new

@@ -23,10 +23,10 @@ add_subresource(resource) end end def add_link(resource) - Link.new(rel, association.href, {}) + Link.create(rel, association.href) .add_to_resource(resource, parent_mapper, nil) # Yaks::Mapper::Link doesn't do anything with the context, making it # hard to test that we pass it a context. Passing nil for now, until # this is actually needed and can be tested. end