X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ad25d712525293ce4f95f5a059b390036ec60dc3..6c89457a8f144d03f230656a1f4c43675d066b8c:/apps/workbench/config/application.rb diff --git a/apps/workbench/config/application.rb b/apps/workbench/config/application.rb index 09fa403057..514d57196d 100644 --- a/apps/workbench/config/application.rb +++ b/apps/workbench/config/application.rb @@ -21,13 +21,17 @@ Bundler.require(:default, Rails.env) module ArvadosWorkbench class Application < Rails::Application + + require_relative "arvados_config.rb" + # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. # Custom directories with classes and modules you want to be autoloadable. + # Autoload paths shouldn't be used anymore since Rails 5.0 + # See #15258 and https://github.com/rails/rails/issues/13142#issuecomment-74586224 # config.autoload_paths += %W(#{config.root}/extras) - config.autoload_paths += %W(#{config.root}/lib) # Only load the plugins named here, in the order given (default is alphabetical). # :all can be used as a placeholder for all plugins not explicitly named. @@ -70,5 +74,3 @@ module ArvadosWorkbench config.assets.paths << Rails.root.join('node_modules') end end - -require File.expand_path('../load_config', __FILE__)