lib/garb/resource.rb in garb-0.5.0 vs lib/garb/resource.rb in garb-0.5.1
- old
+ new
@@ -14,11 +14,16 @@
@#{parameter} = ReportParameter.new(:#{parameter})
end
CODE
end
- def filters(&block)
+ def filters(*hashes, &block)
@filter_parameters ||= FilterParameters.new
+
+ hashes.each do |hash|
+ @filter_parameters.parameters << hash
+ end
+
@filter_parameters.filters(&block) if block_given?
@filter_parameters
end
def clear_filters