Class: ActionAdmin::Config
- Inherits:
-
Hashie::Dash
- Object
- Hashie::Dash
- ActionAdmin::Config
- Defined in:
- lib/action_admin/config.rb
Instance Method Summary collapse
Instance Method Details
#menu(name) {|self.menus.send(:"#{name}")| ... } ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/action_admin/config.rb', line 13 def (name, &block) if self..send(:"#{name}").nil? self..send(:"#{name}=", Hashie::Mash.new) end yield self..send(:"#{name}") end |