[ARVADOS] created: 1.3.0-934-g4837e08b7
Git user
git at public.curoverse.com
Wed May 22 19:59:20 UTC 2019
at 4837e08b7c338f4d25be24346c02c6cfb62aaccb (commit)
commit 4837e08b7c338f4d25be24346c02c6cfb62aaccb
Author: Lucas Di Pentima <ldipentima at veritasgenetics.com>
Date: Wed May 22 16:57:19 2019 -0300
15258: Adds /lib to the eager_load paths.
On rails 5.0 the autoload paths stopped working on production environments
for thread safety concerns.
See: https://github.com/rails/rails/commit/a71350cae0082193ad8c66d65ab62e8bb0b7853b
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima at veritasgenetics.com>
diff --git a/apps/workbench/config/application.rb b/apps/workbench/config/application.rb
index 09fa40305..c8a722f0b 100644
--- a/apps/workbench/config/application.rb
+++ b/apps/workbench/config/application.rb
@@ -27,7 +27,13 @@ module ArvadosWorkbench
# Custom directories with classes and modules you want to be autoloadable.
# config.autoload_paths += %W(#{config.root}/extras)
- config.autoload_paths += %W(#{config.root}/lib)
+
+ # 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
# 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.
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list