Oops, didnt quite understand the "consider requests local" flag.
Reverting it to its previous settings
This commit is contained in:
parent
c50d4bce03
commit
cc8ae8e18c
@ -3,11 +3,9 @@ class ApplicationController < ActionController::Base
|
||||
|
||||
protected
|
||||
|
||||
unless Rails.env.development? || Rails.env.test?
|
||||
rescue_from Exception, :with => :render_error
|
||||
rescue_from Exception, :with => :render_error
|
||||
|
||||
def render_error
|
||||
render :template => "/admin/errors/500", :layout => 'admin/box', :status => 500
|
||||
end
|
||||
def render_error
|
||||
render :template => "/admin/errors/500", :layout => 'admin/box', :status => 500
|
||||
end
|
||||
end
|
||||
|
@ -10,7 +10,7 @@ Locomotive::Application.configure do
|
||||
config.whiny_nils = true
|
||||
|
||||
# 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_controller.perform_caching = false
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user