app/controllers/admin/layouts_controller.rb in radiant-0.8.0 vs app/controllers/admin/layouts_controller.rb in radiant-0.8.1

- old
+ new

@@ -1,10 +1,13 @@ 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 - redirect_to edit_admin_layout_path(params[:id]) + respond_to do |format| + format.xml { super } + format.html { redirect_to edit_admin_layout_path(params[:id]) } + end end end