Module: Reporta::Column::ClassMethods

Defined in:
lib/reporta/models/column.rb

Instance Method Summary collapse

Instance Method Details

#column(name, options = {}) ⇒ Object



34
35
36
37
38
# File 'lib/reporta/models/column.rb', line 34

def column(name, options={})
  columns[name] = OpenStruct.new options.reverse_merge(
    title: name.to_s.humanize
  )
end