Sha256: 20c2752ca15a7a5a809138e61c897dd89c54d492cd640f39b218cdd061d4967b
Contents?: true
Size: 540 Bytes
Versions: 10
Compression:
Stored size: 540 Bytes
Contents
module Alchemy module Admin class LayoutpagesController < Alchemy::Admin::BaseController authorize_resource class: :alchemy_admin_layoutpages helper Alchemy::Admin::PagesHelper def index @layout_root = Page.find_or_create_layout_root_for(Language.current.id) @languages = Language.on_current_site 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