I have a rather strange problem. I have an app mounted on rails by "rvm use 2.6.2@rails6.1.4
". Apparently everything works correctly in production environment, except for sending emails. The strange thing is that from development mode it works correctly, but in production mode it returns the following error:
NameError (uninitialized constant Mail::TestMailer)
I have already tried completely reinstalling all the gems including the rvm. The problem persists the same.
The web app runs on top of Apache/Phusion Passenger on Centos 8 Stream.
Please, I need guidance on it, since I am totally stuck with my project.
Completely reinstall gems, update gems to latest versions, disable firewall, disable SELinux