lib/acu/utilities.rb in rails-acu-2.2.0 vs lib/acu/utilities.rb in rails-acu-3.0.0

- old
+ new

@@ -4,10 +4,14 @@ def helper_initialize instance_variable_set("@_params", {}) if not instance_variable_defined?("@_params") end def pass args = {} helper_initialize - args.each { |k, v| @_params[k] = v } + args.each do |k, v| + @_params[k] ||= [] + @_params[k] << v + @_params[k].flatten + end yield args.each { |k, _| @_params.delete k } end end end \ No newline at end of file