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