lib/rom/plugins/relation/sql/auto_wrap.rb in rom-sql-0.7.0 vs lib/rom/plugins/relation/sql/auto_wrap.rb in rom-sql-0.8.0

- old
+ new

@@ -27,13 +27,14 @@ # @return [SQL::Relation] # # @api private def for_wrap(keys, name) other = __registry__[name] + other_dataset = other.name.dataset - inner_join(name, keys) + inner_join(other_dataset, keys) .select(*qualified.header.columns) - .select_append(*other.prefix(other.name).qualified.header) + .select_append(*other.prefix(other_dataset).qualified.header) end end end end end