Module: PanelHelper

Includes:
ActionView::Helpers
Included in:
BootstrapFormHelper
Defined in:
app/helpers/panel_helper.rb

Instance Method Summary collapse

Instance Method Details

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



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

def panel(options={}, &block)
  tag  = options.delete(:tag).try(:to_sym) || :div
  type = get_panel_type(options.delete(:type))

  prepend_class(options, 'panel', type)

   tag, options, &block
end