Class: SimpleContentManagement::SimpleMenusController

Inherits:
InheritedResources::Base
  • Object
show all
Includes:
SimpleAdminPanel::ControllerExtensions, Breadcrumbs
Defined in:
app/controllers/simple_content_management/simple_menus_controller.rb

Instance Method Summary collapse

Methods included from Breadcrumbs

#reconstruct_breadcrumbs

Instance Method Details

#showObject



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.simple_menu_items.ordered.includes(:children), @simple_menu.simple_menu_items.build]
	show!
end

#updateObject



7
8
9
10
11
# File 'app/controllers/simple_content_management/simple_menus_controller.rb', line 7

def update
	update!
	reconstruct_breadcrumbs
	flash[:success] = "Menu gewijzigd."
end