about summary refs log tree commit diff
path: root/config/initializers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-12-21 19:10:40 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-12-21 19:10:40 +0100
commit6d71044c854c453f499f97af420fe0ed762238d3 (patch)
tree7ac8b8f0bf0de27f6bd7f026e170eb19e5ca8e57 /config/initializers
parentc4bc5c8930f2a8985e7dafa5de800f154ed6f93f (diff)
Don't use rack timeout in any but production environments
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/timeout.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/timeout.rb b/config/initializers/timeout.rb
index 8b7311e39..1e6315b2b 100644
--- a/config/initializers/timeout.rb
+++ b/config/initializers/timeout.rb
@@ -1 +1 @@
-Rack::Timeout.timeout = 30
\ No newline at end of file
+Rack::Timeout.timeout = 30 if Rails.env.production?