Class: ExpressAdmin::CommandButtonList
- Inherits:
-
ExpressTemplates::Components::Configurable
- Object
- ExpressTemplates::Components::Configurable
- ExpressAdmin::CommandButtonList
- Includes:
- ExpressTemplates::Components::Capabilities::Resourceful
- Defined in:
- app/components/express_admin/command_button_list.rb
Instance Method Summary collapse
Instance Method Details
#available?(command) ⇒ Boolean
23 24 25 |
# File 'app/components/express_admin/command_button_list.rb', line 23 def available?(command) resource.available_commands.include?(command) end |
#commands ⇒ Object
27 28 29 |
# File 'app/components/express_admin/command_button_list.rb', line 27 def commands resource.commands end |
#resource_name ⇒ Object
19 20 21 |
# File 'app/components/express_admin/command_button_list.rb', line 19 def resource_name config[:resource_name] end |