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
|