We just updated to Rails 5.
All tests now pass. I'm able to spin up a web server and everything appears to work. But over on the production server, some URLs give an error like this:
uninitialized constant #<Class:0x0055b8d9dedf68>::JsonUtils
app/models/thing.rb:71:in `as_json'
JsonUtils lives in app/lib/json_utils.rb
. (We moved them to app/lib
when lib
was taken out of the autoload paths in the past.)
If I run bin/rails console development
, and actually, even if I run bin/rails console production
, I can type JsonUtils
and it resolves fine. Yet when the application is running for real, this class can't be resolved.
Has anyone else seen something like this?