Module: EasyTable::ActionViewExtensions::TableHelper
- Defined in:
- lib/easy_table/action_view_extensions/table_helper.rb
Instance Method Summary collapse
Instance Method Details
#table_for(collection, options = {}, &block) ⇒ Object
4 5 6 7 8 |
# File 'lib/easy_table/action_view_extensions/table_helper.rb', line 4 def table_for(collection, = {}, &block) t = EasyTable::TableBuilder.new(collection, self, ) block.yield(t) if block_given? t.build end |