Module: RailsMenuManager::ActionController::ClassMethods
- Defined in:
- lib/rails_menu_manager/action_controller.rb
Overview
Class methods for ActionController
Instance Method Summary collapse
Instance Method Details
#menu(*args) ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/rails_menu_manager/action_controller.rb', line 47 def (*args) opts = args. before_action_opts = { only: opts.delete(:only), if: opts.delete(:if), except: opts.delete(:except), unless: opts.delete(:unless) } before_action before_action_opts do (*args, opts) end end |