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, ={}) columns[name] = OpenStruct.new .reverse_merge( title: name.to_s.humanize ) end |