lib/rom/repository/relation_proxy/wrap.rb in rom-repository-1.0.0.beta1 vs lib/rom/repository/relation_proxy/wrap.rb in rom-repository-1.0.0.beta2
- old
+ new
@@ -36,10 +36,11 @@
#
# @api public
def wrap_parent(options)
wrap(
options.each_with_object({}) { |(name, parent), h|
- h[name] = [parent, combine_keys(parent, relation, :children)]
+ keys = combine_keys(parent, relation, :children)
+ h[name] = [parent, keys]
}
)
end
# Return a wrapped representation of a loading-proxy relation