Class: Alchemy::Admin::LayoutpagesController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- BaseController
- Alchemy::Admin::LayoutpagesController
- Defined in:
- app/controllers/alchemy/admin/layoutpages_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
Methods included from Modules
included, #module_definition_for, register_module
Methods included from ConfigurationMethods
#configuration, #multi_language?, #multi_site?
Instance Method Details
#edit ⇒ Object
12 13 14 15 |
# File 'app/controllers/alchemy/admin/layoutpages_controller.rb', line 12 def edit @page = Page.find(params[:id]) @page_layouts = PageLayout.layouts_with_own_for_select(@page.page_layout, Language.current.id, true) end |
#index ⇒ Object
6 7 8 9 10 |
# File 'app/controllers/alchemy/admin/layoutpages_controller.rb', line 6 def index @locked_pages = Page.from_current_site.all_locked_by(current_alchemy_user) @layout_root = Page.find_or_create_layout_root_for(Language.current.id) @languages = Language.all end |