aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/load_interlock.rb
blob: cbe8d750fe8ea04b04c6c2a5fab00bf68da7198a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                        
require 'active_support/dependencies'
require 'rack/lock'

module ActionDispatch
  class LoadInterlock < ::Rack::Lock
    FLAG = 'activesupport.dependency_race'.freeze

    def initialize(app, mutex = ::ActiveSupport::Dependencies.interlock)
      super
    end
  end
end