rtc icon indicating copy to clipboard operation
rtc copied to clipboard

rtc annotations not reloaded in Rails development mode

Open jeffrey-s-foster opened this issue 13 years ago • 2 comments

Rails development mode has this really nice feature in which it reloads files as you edit them. This makes development very lightweight, since you don't need to restart the server as you edit it. However, rtc annotations are not reloaded in the same way---right now you need to restart the server. It would be good to hook into the Rails development reloading mechanism to figure out how to avoid this.

jeffrey-s-foster avatar Mar 16 '12 18:03 jeffrey-s-foster

How would one hook into the reloading? Is that done via some mechanism in Ruby or is it something Rails specific?

jtoman avatar Mar 18 '12 01:03 jtoman

Going to http://api.rubyonrails.org/ and searching for "reload", I find there's a class ActionDispatch::Reloader (http://api.rubyonrails.org/classes/ActionDispatch/Reloader.html) that has something to do with reloading. I've also found a bunch of web pages about a module called Dependencies, but this seems to be part of Rails 2 and not Rails 3. Here's one page: http://hemju.com/2011/02/11/rails-3-quicktip-auto-reload-lib-folders-in-development-mode/ that has stuff about ensuring a library is reloaded.

jeffrey-s-foster avatar Mar 20 '12 16:03 jeffrey-s-foster