1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 # See http://aaronvb.com/articles/37-rails-caching-and-undefined-class-module
7 # Config must be done before we load model class files; otherwise they
8 # won't be able to use Rails.configuration.* to initialize their
11 if Rails.env == 'development'
12 Dir.foreach("#{Rails.root}/app/models") do |model_file|
13 require_dependency model_file if model_file.match(/\.rb$/)