I've generated simple rails api application and I've got problem with Rails.application.secrets.secret_key_base - it's nil. I'm launching it on my local machine.
According to this article everything should be fine. I've got proper app/config/credentials.yml.enc. When I try to edit it with rails credentials:edit it edits properly. Actual content of it is
# Used as the base secret for all MessageVerifiers in Rails, including the one protecting cookies.
secret_key_base: 47ba27802a354b44c1cd0d0c624fcde2dced69ccfe62d274e9ecfc98d9e6671c4cf31a29aaf77af555d9553811a3ff15f22ab060e5ec5ffc0d29f77241368272
In all configuration files (/app/config/environments/*.rb) I've added config.require_master_key = true - it doesn't help.
My actual Rails.application.secrets content is {:secret_key_base=>nil, :secret_token=>nil}. I've dumped it in my custom class and application_controller.rb - this same result in both places.
Any ideas what I've missed?
PS. Before You flag this question with duplicate - note that I'm using rails 5.2 where credentials storing has changed.