Skip to content

Commit 0469e1f

Browse files
committed
disable consider_all_requests_local in development as it prevents exceptions_app from working
1 parent 7b61d00 commit 0469e1f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

config/environments/development.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
# Do not eager load code on boot.
1313
config.eager_load = false
1414

15-
# Show full error reports and disable caching.
15+
# Set this to +true+ unless you want to skip exceptions_app:
16+
config.consider_all_requests_local = false
17+
18+
# Controller caching (+false+ by default, can be overridden via the env variable):
1619
perform_caching = ActiveRecord::Type::Boolean.new.cast(ENV['PERFORM_CACHING'])
17-
config.consider_all_requests_local = true
1820
config.action_controller.perform_caching = perform_caching || false
1921
Rack::MiniProfiler.config.disable_caching = !perform_caching
2022

0 commit comments

Comments
 (0)