Module: PanelRowHelper

Defined in:
app/helpers/panel_row_helper.rb

Instance Method Summary collapse

Instance Method Details

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



3
4
5
6
7
8
9
10
11
# File 'app/helpers/panel_row_helper.rb', line 3

def panel_row(options={}, &block)
  column_class = options.delete(:column_class) || ''
  data         = (options[:data] || {}).merge(bui: 'panel_row',
                                              column_class: column_class)
  options[:data] = data
  prepend_class(options, 'row')

   :div, options, &block
end