aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/lock.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller/lock.rb')
-rw-r--r--actionpack/lib/action_controller/lock.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/actionpack/lib/action_controller/lock.rb b/actionpack/lib/action_controller/lock.rb
deleted file mode 100644
index c50762216e..0000000000
--- a/actionpack/lib/action_controller/lock.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-module ActionController
- class Lock
- FLAG = 'rack.multithread'.freeze
-
- def initialize(app, lock = Mutex.new)
- @app, @lock = app, lock
- end
-
- def call(env)
- old, env[FLAG] = env[FLAG], false
- @lock.synchronize { @app.call(env) }
- ensure
- env[FLAG] = old
- end
- end
-end