Hello,
Where should I put a require such that it’s available to all my models?
Or better, the entire application. Thanks.
Christopher J. Bottaro wrote:
Hello,
Where should I put a require such that it’s available to all my models?
Or better, the entire application. Thanks.
depends on what it is that you need to require
/app/controller/application.rb
is a good location
or in each individual model
Christopher J. Bottaro wrote:
Hello,
Where should I put a require such that it’s available to all my models?
Or better, the entire application. Thanks.
Put it at the bottom of your environment.rb, that’s the place for that
sort of stuff.
Douglas S. wrote:
Christopher J. Bottaro wrote:
Hello,
Where should I put a require such that it’s available to all my models?
Or better, the entire application. Thanks.Put it at the bottom of your environment.rb, that’s the place for that
sort of stuff.
Ahh, perfect, thank you …