Module: Xebec::ControllerSupport::ClassMethods
- Defined in:
- lib/xebec/controller_support.rb
Instance Method Summary collapse
-
#nav_bar(name = Xebec::NavBar::DEFAULT_NAME, options = {}) {|Xebec::NavBar| ... } ⇒ nil
Declare and populate a navigation bar.
Instance Method Details
#nav_bar(name = Xebec::NavBar::DEFAULT_NAME, options = {}) {|Xebec::NavBar| ... } ⇒ nil
Declare and populate a navigation bar. This method is a shorthand for creating a before_filter
that looks up and populates a navigation bar.
42 43 44 45 46 47 |
# File 'lib/xebec/controller_support.rb', line 42 def (name = Xebec::NavBar::DEFAULT_NAME, = {}, &block) append_before_filter do |controller| controller. name, &block end nil end |