Commit 397ea672b30f176e24a6a1627a125473b3d836cf

Authored by Nathan Broadbent
1 parent a08269f9
Exists in master and in 1 other branch production

Fixed new display_internal_errors setting - environments/production.rb doesn't h…

…ave access to config yet
config/environments/production.rb
... ... @@ -6,7 +6,7 @@ Errbit::Application.configure do
6 6 config.cache_classes = true
7 7  
8 8 # Shows or hides all error details if something goes wrong inside Errbit
9   - config.consider_all_requests_local = Errbit::Config.display_internal_errors
  9 + config.consider_all_requests_local = false
10 10 # Caching is turned on
11 11 config.action_controller.perform_caching = true
12 12  
... ...
config/initializers/_load_config.rb
... ... @@ -74,3 +74,6 @@ end
74 74 default.merge! :host => Errbit::Config.host if default[:host].blank?
75 75 end
76 76  
  77 +if Rails.env.production?
  78 + Rails.application.config.consider_all_requests_local = Errbit::Config.display_internal_errors
  79 +end
77 80 \ No newline at end of file
... ...