Class: ActiveAdminMenu::Config
- Inherits:
-
Object
- Object
- ActiveAdminMenu::Config
- Defined in:
- lib/active_admin_menu/config.rb
Instance Attribute Summary collapse
-
#i18n_scope_prefix ⇒ Object
Returns the value of attribute i18n_scope_prefix.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#source ⇒ Object
Returns the value of attribute source.
-
#uncategorize_key_name ⇒ Object
Returns the value of attribute uncategorize_key_name.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #namespaced_source ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
18 19 20 21 22 |
# File 'lib/active_admin_menu/config.rb', line 18 def initialize @source = {} @uncategorize_key_name = "root" @i18n_scope_prefix = { parent: "active_admin.menu", label: "active_admin.menu" } end |
Instance Attribute Details
#i18n_scope_prefix ⇒ Object
Returns the value of attribute i18n_scope_prefix.
16 17 18 |
# File 'lib/active_admin_menu/config.rb', line 16 def i18n_scope_prefix @i18n_scope_prefix end |
#namespace ⇒ Object
Returns the value of attribute namespace.
16 17 18 |
# File 'lib/active_admin_menu/config.rb', line 16 def namespace @namespace end |
#source ⇒ Object
Returns the value of attribute source.
15 16 17 |
# File 'lib/active_admin_menu/config.rb', line 15 def source @source end |
#uncategorize_key_name ⇒ Object
Returns the value of attribute uncategorize_key_name.
16 17 18 |
# File 'lib/active_admin_menu/config.rb', line 16 def uncategorize_key_name @uncategorize_key_name end |
Instance Method Details
#namespaced_source ⇒ Object
28 29 30 |
# File 'lib/active_admin_menu/config.rb', line 28 def namespaced_source source[namespace] || source end |