Method: TableHelper#table_for
- Defined in:
- lib/tablematic/helper.rb
#table_for(records, options = {}, &block) ⇒ Object
4 5 6 7 |
# File 'lib/tablematic/helper.rb', line 4 def table_for(records, ={}, &block) attr = [:attributes] || records.first.attribute_names concat TableBuilder.new(records, attr, ).build(self, &block) end |