Class: Sinatra::Reloader
- Inherits:
-
Rack::Reloader
- Object
- Rack::Reloader
- Sinatra::Reloader
- Defined in:
- lib/plantwatchdog/sinatra.rb
Overview
Reload scripts and reset routes on change
Instance Method Summary collapse
Instance Method Details
#safe_load(file, mtime, stderr = $stderr) ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/plantwatchdog/sinatra.rb', line 24 def safe_load(file, mtime, stderr = $stderr) if file == __FILE__ #::Sinatra::Application.reset! PlantWatchdog::UI::SinatraApp.reset! stderr.puts "#{self.class}: reseting routes" end super end |