Rename preload_all_models to zz_* so it runs after load_config.
[arvados.git] / services / api / config / initializers / zz_preload_all_models.rb
1 # See http://aaronvb.com/articles/37-rails-caching-and-undefined-class-module
2
3 if Rails.env == 'development'
4   Dir.foreach("#{Rails.root}/app/models") do |model_file|
5     require_dependency model_file if model_file.match /\.rb$/
6   end 
7 end