Class: SimpleContentManagement::SimpleMenusController
- Inherits:
-
InheritedResources::Base
- Object
- InheritedResources::Base
- SimpleContentManagement::SimpleMenusController
- Includes:
- SimpleAdminPanel::ControllerExtensions, Breadcrumbs
- Defined in:
- app/controllers/simple_content_management/simple_menus_controller.rb
Instance Method Summary collapse
Methods included from Breadcrumbs
Instance Method Details
#show ⇒ Object
13 14 15 16 17 |
# File 'app/controllers/simple_content_management/simple_menus_controller.rb', line 13 def show resource @simple_menu_items = [*@simple_menu..ordered.includes(:children), @simple_menu..build] show! end |
#update ⇒ Object
7 8 9 10 11 |
# File 'app/controllers/simple_content_management/simple_menus_controller.rb', line 7 def update update! flash[:success] = "Menu gewijzigd." end |