Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 308 Bytes
require 'active_support/dependencies'
ActiveSupport::Dependencies.autoload_paths = ['lib']
ActiveSupport::Dependencies.mechanism = :load
module ReloadingApp
def self.call(env)
require_dependency 'app'
App.call(env)
ensure
ActiveSupport::Dependencies.clear
end
end
run ReloadingApp
Something went wrong with that request. Please try again.