1 # See http://aaronvb.com/articles/37-rails-caching-and-undefined-class-module
3 # Config must be done before we load model class files; otherwise they
4 # won't be able to use Rails.configuration.* to initialize their
6 require_relative 'load_config.rb'
8 if Rails.env == 'development'
9 Dir.foreach("#{Rails.root}/app/models") do |model_file|
10 require_dependency model_file if model_file.match /\.rb$/