Module: Tubular::Helper

Defined in:
lib/tubular/helper.rb

Instance Method Summary collapse

Instance Method Details

#table_for(collection, options = {}, &block) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/tubular/helper.rb', line 3

def table_for(collection, options = {}, &block)
  options.merge!({
    :context    => self,
    :collection => collection
  })

  Builder.render(options, &block)
end