Merge branch 'master' into 2187-enhance-user-setup
[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