Sha256: c265367f3625e09cfed0f36b339eb528c77472801e6c67093cc332b098d329a2
Contents?: true
Size: 487 Bytes
Versions: 10
Compression:
Stored size: 487 Bytes
Contents
module Alchemy module Admin class LayoutpagesController < Alchemy::Admin::BaseController authorize_resource class: :alchemy_admin_layoutpages def index @layout_root = Page.find_or_create_layout_root_for(Language.current.id) @languages = Language.all end def edit @page = Page.find(params[:id]) @page_layouts = PageLayout.layouts_with_own_for_select(@page.page_layout, Language.current.id, true) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems