Created
April 13, 2014 17:57
-
-
Save mgdelacroix/10594819 to your computer and use it in GitHub Desktop.
Autoloading for rails 4 lib folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In config/application.rb | |
config.watchable_dirs['lib'] = [:rb] | |
# When requiring something, use require_dependency | |
# To use lib/myclass.rb | |
require_dependency 'myclass' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment