Oops, didnt quite understand the "consider requests local" flag.

Reverting it to its previous settings
This commit is contained in:
Jacques Crocker 2010-07-30 23:50:44 -07:00
parent c50d4bce03
commit cc8ae8e18c
2 changed files with 4 additions and 6 deletions

View File

@ -3,11 +3,9 @@ class ApplicationController < ActionController::Base
protected protected
unless Rails.env.development? || Rails.env.test? rescue_from Exception, :with => :render_error
rescue_from Exception, :with => :render_error
def render_error def render_error
render :template => "/admin/errors/500", :layout => 'admin/box', :status => 500 render :template => "/admin/errors/500", :layout => 'admin/box', :status => 500
end
end end
end end

View File

@ -10,7 +10,7 @@ Locomotive::Application.configure do
config.whiny_nils = true config.whiny_nils = true
# Show full error reports and disable caching # Show full error reports and disable caching
config.consider_all_requests_local = false config.consider_all_requests_local = true
config.action_view.debug_rjs = true config.action_view.debug_rjs = true
config.action_controller.perform_caching = false config.action_controller.perform_caching = false