Module: RailsMenuManager::ActionController
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/rails_menu_manager/action_controller.rb
Overview
Menu methods for ActionController
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#in_menu?(*args) ⇒ Boolean
Checks if a at least one defined and active menu is in given path.
-
#menu(*args) ⇒ Object
Adds a menu Supports before_action options: if, only, unless, except.
Instance Method Details
#in_menu?(*args) ⇒ Boolean
Checks if a at least one defined and active menu is in given path
19 20 21 |
# File 'lib/rails_menu_manager/action_controller.rb', line 19 def (*args) .any? { |m| m.in?(*args) } end |
#menu(*args) ⇒ Object
Adds a menu Supports before_action options: if, only, unless, except
27 28 29 |
# File 'lib/rails_menu_manager/action_controller.rb', line 27 def (*args) (*args) end |