mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
15 lines
232 B
Ruby
15 lines
232 B
Ruby
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
|