I updated one of my applications from Rails 4.2.6 to Rails 5.0.0. The Update Guide says that Autoload is disabled by default.
Now I always get an error message on my working server, since I load all the autoload lib files into the application.rb file.
module MyApp class Application < Rails::Application config.autoload_paths += %W( lib/ ) end end
Currently, I have set config.enable_dependency_loading to true , but I am wondering if there is a better solution for this. There must be a reason Autoloading is shutting down in production by default.
ruby-on-rails ruby-on-rails-5 autoload
Tobias Jul 05 '16 at 8:30 2016-07-05 08:30
source share