Sha256: 46fac20df7a95bc44d7bc9f8cea8984d3f45693f86b62ba5ec4e5c1eafa2c07d
Contents?: true
Size: 571 Bytes
Versions: 39
Compression:
Stored size: 571 Bytes
Contents
# frozen_string_literal: true 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
39 entries across 39 versions & 1 rubygems