Rails : make custom libraries autoloadable

16 Apr 2013

By default Rails won't autoreload our custom libraries or classes which we keep in lib folder. Restart server each time when you do some changes to those libraries is a tedious task. To make those classes autoloadable add the below line of code to configure block in your config/environments/development.rb

Happy coding.
If you find my work useful, I appreciate donations via PayPal.
comments powered by Disqus