Mehal
Mehal

Reputation: 398

code reloading from 'lib' in rails 3.2.3

I'm developing new component and don't want to waste time on reloading environment each time.

I've found few related questions, but no one solution worked for me. So what is the technique to automatically reload code from lib folder when sources changed?

Upvotes: 2

Views: 224

Answers (1)

guanxiaohua2k6
guanxiaohua2k6

Reputation: 371

Please add the following line in the config/application.rb.

config.autoload_paths += %W(#{config.root}/lib)

Upvotes: 1

Related Questions