Answer the question
In order to leave comments, you need to log in
How to get rid of the problem when eager loading the lib directory and using custom controller templates?
Hello.
In production I use eager load for the entire lib directory
config.eager_load_paths += Dir["#{config.root}/lib/"]
lib/templates/erb/controller.rb
lib
to eager_load_paths
and load everything manually, but maybe there is another solution? Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question