Update to bundler 2.0.2
[arvados.git] / apps / workbench / config / application.rb
index c8a722f0bfff06b107a83a198aee5a79755877c1..514d57196d3fcc802dbc83a640907bbf166ceb76 100644 (file)
@@ -21,19 +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.
-    # config.autoload_paths += %W(#{config.root}/extras)
-
     # Autoload paths shouldn't be used anymore since Rails 5.0
     # See #15258 and https://github.com/rails/rails/issues/13142#issuecomment-74586224
-    config.eager_load_paths += %W(#{config.root}/lib)
-
-    # Load entire application at startup.
-    config.eager_load = true
+    # config.autoload_paths += %W(#{config.root}/extras)
 
     # 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.
@@ -76,5 +74,3 @@ module ArvadosWorkbench
     config.assets.paths << Rails.root.join('node_modules')
   end
 end
-
-require File.expand_path('../load_config', __FILE__)