lib/rom/repository/relation_proxy/combine.rb in rom-repository-1.0.0.beta1 vs lib/rom/repository/relation_proxy/combine.rb in rom-repository-1.0.0.beta2
- old
+ new
@@ -15,10 +15,10 @@
# @return [RelationProxy]
#
# @api private
def combined(name, keys, type)
meta = { keys: keys, combine_type: type, combine_name: name }
- with(name: name, meta: meta)
+ with(name: name, meta: self.meta.merge(meta))
end
# Combine with other relations
#
# @overload combine(*associations)