replaced the pulled code with proper gem-reference

The railtie now automatically makes sure, that the middleware is used,
and the included gem better respects the copyright of the used solution.
This commit is contained in:
Stefan Frank
2013-10-10 09:45:51 +02:00
parent bcabf75ffe
commit ea4615d66a
-20
View File
@@ -1,20 +0,0 @@
module RequestStore
class Middleware
def initialize(app)
@app = app
end
def call(env)
RequestStore.clear!
@app.call(env)
end
end
def self.store
Thread.current[:request_store] ||= {}
end
def self.clear!
Thread.current[:request_store] = {}
end
end