I'm trying to draw routes as soon as routes.rb changes.
My Guardfile:
guard :rake, task: :routes, run_on_start: true, run_on_all: false do
watch('config/routes.rb')
end
The problem is that when I change file rake routes output does not reflect recent changes.
Also, it runs very fast, like the rails app been preloaded.
How to approach this problem?