Class methods for ActionController
ActionController
# File lib/rails_menu_manager/action_controller.rb, line 47 def menu(*args) opts = args.extract_options! 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 rails_menu_manger_add_menu_setting(*args, opts) end end