It's not working (development OK, production empty)
Rails.application.secrets.secret_key_base
Starting from Rails 5.2 there is no more secrets.yml file and the right way to get the env variables saved in credential.yml.enc
is as follows:
Rails.application.credentials.dig(:secret_key_base)