Module: ActiveAdmin::MenuTree
- Extended by:
- Logging
- Defined in:
- lib/activeadmin/menu_tree.rb,
lib/activeadmin/menu_tree/dsl.rb,
lib/activeadmin/menu_tree/config.rb,
lib/activeadmin/menu_tree/logging.rb,
lib/activeadmin/menu_tree/version.rb
Overview
ActiveAdmin::MenuTree class
Defined Under Namespace
Modules: DSL, Logging Classes: Config, Error
Constant Summary collapse
- VERSION =
"0.3.0"
Class Method Summary collapse
Methods included from Logging
debug?, log_debug, warn_deprecated
Class Method Details
.config ⇒ Object
31 32 33 |
# File 'lib/activeadmin/menu_tree.rb', line 31 def config @config ||= Config.new end |
.setup {|config| ... } ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/activeadmin/menu_tree.rb', line 19 def setup raise ActiveAdmin::MenuTree::Error, "No block given, require a block" unless block_given? yield(config) ActiveAdmin.before_load do |aa_config| ActiveAdmin::DSL.prepend ActiveAdmin::MenuTree::DSL (aa_config) end end |