My website used to be working and Heroku precompiled the assets and everything. Now, seemingly out of nowhere, I started to get this message on deploy:
For ruby 2.3.0 or lower versions are having the following line in application.rb file for Rails. But 2.4.0 or higher have implemented those as automated.
Bundler.require(*Rails.groups)
Changing the ruby version to 2.3.0 did the trick. This one saved my day.