Module: ActiveAdmin::BaseController::Menu
- Extended by:
- ActiveSupport::Concern
- Included in:
- ActiveAdmin::BaseController
- Defined in:
- lib/active_admin/base_controller/menu.rb
Instance Method Summary collapse
- #current_menu ⇒ Object protected
-
#set_current_tab ⇒ Object
protected
Set’s @current_tab to be name of the tab to mark as current Get’s called through a before filter.
Instance Method Details
#current_menu ⇒ Object (protected)
13 14 15 |
# File 'lib/active_admin/base_controller/menu.rb', line 13 def active_admin_config.namespace. end |
#set_current_tab ⇒ Object (protected)
Set’s @current_tab to be name of the tab to mark as current Get’s called through a before filter
19 20 21 22 23 24 25 |
# File 'lib/active_admin/base_controller/menu.rb', line 19 def set_current_tab @current_tab = if active_admin_config.belongs_to? && parent? active_admin_config.belongs_to_config.target. else [active_admin_config., active_admin_config.].compact.join("/") end end |