Module: ControllerHelper::ClassMethods
- Defined in:
- lib/users/controller_helper.rb
Instance Method Summary collapse
- #active_menu(opt = {}, &block) ⇒ Object
- #breadcrumb(opt = {}, &block) ⇒ Object
-
#logo(opt = {}, &block) ⇒ Object
Navigation.
Instance Method Details
#active_menu(opt = {}, &block) ⇒ Object
18 19 20 21 22 |
# File 'lib/users/controller_helper.rb', line 18 def opt = {}, &block before opt do |controller| controller.instance_variable_set "@active_menu", controller.instance_eval(&block) end end |
#breadcrumb(opt = {}, &block) ⇒ Object
12 13 14 15 16 |
# File 'lib/users/controller_helper.rb', line 12 def opt = {}, &block before opt do |controller| controller.instance_variable_set "@breadcrumb", controller.instance_eval(&block) end end |
#logo(opt = {}, &block) ⇒ Object
Navigation
6 7 8 9 10 |
# File 'lib/users/controller_helper.rb', line 6 def logo opt = {}, &block before opt do |controller| controller.instance_variable_set "@logo", controller.instance_eval(&block) end end |