Created
April 8, 2009 03:00
-
-
Save jqr/91605 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Preloads models in a subdirectory of RAILS_ROOT/app/models so STI can find | |
# them properly. | |
Dir.glob(File.join(RAILS_ROOT, 'app', 'models', '**/*.rb')) do |file| | |
require file | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment