PERF: move message bus to the front of the middleware stack

Organise all initializers so they are properly ordered and use the same naming scheme
This commit is contained in:
Sam
2015-12-07 14:51:24 +11:00
parent 1ef9233aec
commit c04bcf8655
37 changed files with 94 additions and 83 deletions
+14
View File
@@ -0,0 +1,14 @@
# tiny middleware to force https if needed
class Discourse::ForceHttpsMiddleware
def initialize(app, config={})
@app = app
end
def call(env)
env['rack.url_scheme'] = 'https' if SiteSetting.use_https
@app.call(env)
end
end