From ea4615d66a4420c6d6d195df6e61ba9746e8800b Mon Sep 17 00:00:00 2001 From: Stefan Frank Date: Thu, 10 Oct 2013 09:45:51 +0200 Subject: [PATCH] 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. --- lib/request_store/middleware.rb | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 lib/request_store/middleware.rb diff --git a/lib/request_store/middleware.rb b/lib/request_store/middleware.rb deleted file mode 100644 index d5f0527e17e..00000000000 --- a/lib/request_store/middleware.rb +++ /dev/null @@ -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 \ No newline at end of file