aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/lib/action_controller/reloader.rb
blob: 46789309cd05cd43e34adf5c500b1bc10fcb5762 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                    
module ActionController
  class Reloader
    def initialize(app)
      @app = app
    end

    def call(env)
      Dispatcher.reload_application
      @app.call(env)
    ensure
      Dispatcher.cleanup_application
    end
  end
end