Module: BakeryTheme::ToolbarHelper

Included in:
BakeryThemeHelper
Defined in:
app/helpers/bakery_theme/toolbar_helper.rb

Defined Under Namespace

Classes: Toolbar

Instance Method Summary collapse

Instance Method Details

#toolbar(options = {}) {|t| ... } ⇒ Object

Yields:

  • (t)


4
5
6
7
8
9
# File 'app/helpers/bakery_theme/toolbar_helper.rb', line 4

def toolbar(options = {}, &block)
  raise "Block required" unless block_given?
  t = Toolbar.new self, options
  yield t
  t.to_html
end