Method: QueryReport::ColumnModule#column
- Defined in:
- lib/query_report/column.rb
#column(name, 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 => set true to calculate total for that column options => the column will appear on the web and not appear in PDF or csv if set to true options => the rows with same values in the same column will span if set to true
19 20 21 |
# File 'lib/query_report/column.rb', line 19 def column(name, ={}, &block) @columns << Column.new(self, name, , block) end |