I followed the comments in config / application.rb which
# Settings in config/environments/* take precedence over those specified here.
But when I added Rails.application.config.eager_load_paths << Rails.root.join('lib') to config/initializers/eager_load.rb .
It throws <top (required)>': can't modify frozen Array (RuntimeError)
Yes, it works if I put it inside config/application.rb .
I want to know why this does not work on the initializer and how to make it work using the convention?
source share