Class: Alchemy::Admin::LayoutpagesController

Inherits:
BaseController show all
Includes:
CurrentLanguage
Defined in:
app/controllers/alchemy/admin/layoutpages_controller.rb

Instance Method Summary collapse

Methods inherited from BaseController

#leave

Methods included from Modules

included, #module_definition_for, register_module

Methods included from Alchemy::AbilityHelper

#current_ability

Methods included from ConfigurationMethods

#configuration, #multi_language?, #multi_site?, #prefix_locale?

Instance Method Details

#editObject



17
18
19
# File 'app/controllers/alchemy/admin/layoutpages_controller.rb', line 17

def edit
  @page = Page.find(params[:id])
end

#indexObject



12
13
14
15
# File 'app/controllers/alchemy/admin/layoutpages_controller.rb', line 12

def index
  @layout_pages = Page.layoutpages.where(language: @current_language)
  @languages = Language.on_current_site
end