We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8eeeaaf commit 5b3265dCopy full SHA for 5b3265d
1 file changed
frameworks/rails/config/application.rb
@@ -26,10 +26,10 @@ class BenchmarkApp < Rails::Application
26
config.middleware.delete ActionDispatch::ShowExceptions
27
28
# Add gzip support
29
- config.middleware.insert Rack::Deflater
+ config.middleware.insert 0, Rack::Deflater
30
31
# Catch unknown HTTP methods, routing errors, and mark /upload as binary
32
- config.middleware.insert_before 0, Class.new {
+ config.middleware.insert 0, Class.new do
33
VALID_METHODS = %w[GET HEAD POST PUT DELETE PATCH OPTIONS TRACE].to_set.freeze
34
35
def initialize(app)
@@ -52,8 +52,7 @@ def call(env)
52
raise
53
end
54
55
- }
56
-
+ end
57
# Silence logging
58
config.logger = nil
59
config.log_level = :fatal
0 commit comments