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
|
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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user