Hi,
Am I right in thinking that whatever is in your lib/ folder doesn’t get
reloaded on each request in dev mode?
Jeroen
Hi,
Am I right in thinking that whatever is in your lib/ folder doesn’t get
reloaded on each request in dev mode?
Jeroen
It depends on how you’ve required it. If you required it from the
environment then no, you need to restart. If it’s required in your
controllers and models then it should reload with them. I use the
environment approach myself.
Ian L. wrote:
It depends on how you’ve required it. If you required it from the
environment then no, you need to restart. If it’s required in your
controllers and models then it should reload with them. I use the
environment approach myself.
I haven’t required it anywhere, it’s just magically loaded from /lib
I’ll try requiring explicitly it from my controller instead then.
Thanks!
Jeroen
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs