Commit 397ea672b30f176e24a6a1627a125473b3d836cf
1 parent
a08269f9
Exists in
master
and in
1 other branch
Fixed new display_internal_errors setting - environments/production.rb doesn't h…
…ave access to config yet
Showing
2 changed files
with
4 additions
and
1 deletions
Show diff stats
config/environments/production.rb
| @@ -6,7 +6,7 @@ Errbit::Application.configure do | @@ -6,7 +6,7 @@ Errbit::Application.configure do | ||
| 6 | config.cache_classes = true | 6 | config.cache_classes = true |
| 7 | 7 | ||
| 8 | # Shows or hides all error details if something goes wrong inside Errbit | 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 | # Caching is turned on | 10 | # Caching is turned on |
| 11 | config.action_controller.perform_caching = true | 11 | config.action_controller.perform_caching = true |
| 12 | 12 |
config/initializers/_load_config.rb
| @@ -74,3 +74,6 @@ end | @@ -74,3 +74,6 @@ end | ||
| 74 | default.merge! :host => Errbit::Config.host if default[:host].blank? | 74 | default.merge! :host => Errbit::Config.host if default[:host].blank? |
| 75 | end | 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 | \ No newline at end of file | 80 | \ No newline at end of file |