lib/alba/many.rb in alba-1.2.0 vs lib/alba/many.rb in alba-1.3.0

- old
+ new

@@ -13,9 +13,9 @@ @object = target.public_send(@name) @object = @condition.call(@object, params) if @condition return if @object.nil? @resource = constantize(@resource) - @object.map { |o| @resource.new(o, params: params, within: within).to_hash } + @resource.new(@object, params: params, within: within).to_hash end end end