lib/mongoid/report/report_proxy.rb in mongoid-report-0.1.1 vs lib/mongoid/report/report_proxy.rb in mongoid-report-0.1.2
- old
+ new
@@ -3,10 +3,10 @@
ReportProxy = Struct.new(:context, :name) do
def attach_to(model, options = {}, &block)
as = options.fetch(:as) { model.collection.name }
- options.merge!(as: "#{name}-#{as}") if as
+ options.merge!(as: "#{name}-#{as}")
context.attach_to(model, options, &block)
end
end