Creates a filter and adds to the filters Params:
column
the column on which the filter is done on
options
Options can have the following, options => date | text | whatever options => the comparators used for ransack search, [:gteq, :lteq]
19 20 21 22
# File 'lib/query_report/filter.rb', line 19 def filter(column, options={}, &block) @filters ||= [] @filters << Filter.new(@params, column, options, &block) end