Module: QueryReport::ColumnModule

Included in:
Report
Defined in:
lib/query_report/column.rb

Defined Under Namespace

Classes: Column

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#columnsObject

Returns the value of attribute columns.



8
9
10
# File 'lib/query_report/column.rb', line 8

def columns
  @columns
end

Instance Method Details

#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 => the column will appear on the web and not appear in PDF or csv if set to true



17
18
19
# File 'lib/query_report/column.rb', line 17

def column(name, options={}, &block)
  @columns << Column.new(self, name, options, block)
end