I imagine it's for a similar reason to this...
Rack::Reloader reloads all files back into the same running instance of Ruby, which means the result is virtually the same as this...
class App < Scorched::Controller
get '/' do
'hello'
end
end
class App < Scorched::Controller
get '/' do
"g'day"
end
end
That works in Ruby because obviously it allows classes to be re-opened, but alas, the new route is simply added to the end of the existing list of mappings. I recommend using `shotgun` for apps with a quick boot time, or otherwise `
rerun -p "**/*.rb"` for apps with a longer boot process.
Tom