Sha256: a189876e19a5e1ffadc53265bc784f7f2169f217e320ef007b4ea252b1595bd2

Contents?: true

Size: 493 Bytes

Versions: 11

Compression:

Stored size: 493 Bytes

Contents

class Admin::LayoutsController < Admin::ResourceController
  only_allow_access_to :index, :show, :new, :create, :edit, :update, :remove, :destroy,
    :when => [:developer, :admin],
    :denied_url => { :controller => 'admin/pages', :action => 'index' },
    :denied_message => 'You must have developer privileges to perform this action.'

  def show
    respond_to do |format|
      format.xml { super }
      format.html { redirect_to edit_admin_layout_path(params[:id]) }
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
radiantcms-couchrest_model-0.2.4 app/controllers/admin/layouts_controller.rb
radiantcms-couchrest_model-0.2.2 app/controllers/admin/layouts_controller.rb
radiantcms-couchrest_model-0.2.1 app/controllers/admin/layouts_controller.rb
radiantcms-couchrest_model-0.2 app/controllers/admin/layouts_controller.rb
radiantcms-couchrest_model-0.1.9 app/controllers/admin/layouts_controller.rb
radiantcms-couchrest_model-0.1.8 app/controllers/admin/layouts_controller.rb
radiantcms-couchrest_model-0.1.7 app/controllers/admin/layouts_controller.rb
radiantcms-couchrest_model-0.1.6 app/controllers/admin/layouts_controller.rb
radiantcms-couchrest_model-0.1.5 app/controllers/admin/layouts_controller.rb
radiant-0.8.2 app/controllers/admin/layouts_controller.rb
radiant-0.8.1 app/controllers/admin/layouts_controller.rb