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]
17 18 19 20
# File 'lib/query_report/filter.rb', line 17 def filter(column, options={}, &block) @filters ||= [] @filters << Filter.new(@params, column, options, &block) end