Sha256: 083ed21f53f54927da18a60ffa99cf86f63480a63872e6a8d0df990a41cd402c
Contents?: true
Size: 490 Bytes
Versions: 11
Compression:
Stored size: 490 Bytes
Contents
class Cms::MainController < Cms::SetupController unloadable extend Cms::RoleAuthentication layout 'cms' before_filter :load_pages_and_assets authenticate_user :all, :only => %w(index) def index render :partial => 'cms/shared/index', :layout => true end protected def load_pages_and_assets @context = Cms::Context.new(@cms_context) @pages = @context.pages.ordered.all(:conditions => {:layout_page_id => nil}) @assets = @context.assets.ordered end end
Version data entries
11 entries across 11 versions & 1 rubygems