Method: QueryReport::FilterModule#filter

Defined in:
lib/query_report/filter.rb

#filter(column, options = {}, &block) ⇒ Object

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] options => if set to true then that filter will not be applied, only will appear and can be used for custom application options => support default filter value, can be one value or for range filter can be array



21
22
23
24
# File 'lib/query_report/filter.rb', line 21

def filter(column, options={}, &block)
  @filters ||= []
  @filters << Filter.new(@params, column, options, &block)
end