Class: MegaBar::LayoutsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- MegaBar::LayoutsController
- Includes:
- AuthorizationConcern, MegaBarConcern
- Defined in:
- app/controllers/mega_bar/layouts_controller.rb
Instance Method Summary collapse
Methods included from MegaBarConcern
#add_form_path_to_mega_displays, #administer_block, #administer_page, #collect_filters, #column_sorting, #conditions, #constant_from_controller, #create, #destroy, #edit, #form_path, #index, #is_displayable?, #might_filter?, #might_paginate?, #move, #num_per_page, #process_filters, #redo_setup, #set_vars_for_all, #set_vars_for_displays, #show, #sort_column, #sort_direction, #test_create, #unpack_nested_classes, #update
Methods inherited from ApplicationController
Methods included from AuthorizationHelper
#can_create?, #can_destroy?, #can_edit?, #can_index?, #can_perform_action?, #can_show?, #can_update?, #has_mega_role?, #link_if_can, #link_if_can_create, #link_if_can_destroy, #link_if_can_edit, #link_if_can_index, #link_if_can_show, #link_if_can_update, #link_if_can_with_wrapper
Instance Method Details
#get_options ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'app/controllers/mega_bar/layouts_controller.rb', line 11 def @options[:mega_bar_layouts] = { page_id: Page.all.pluck("name, id"), theme_ids: Theme.all.pluck("name, id"), template_id: Template.all.pluck("name, id"), site_ids: Site.all.pluck("name, id") # [['All But...', 0]] + } end |
#new ⇒ Object
6 7 8 9 |
# File 'app/controllers/mega_bar/layouts_controller.rb', line 6 def new @page_id = params["page_id"] if params["page_id"] super end |