You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run Rails.application.credentials from the console from any environment.
Expected behavior
Rails.application.secrets will return environment specific secrets from secrets.yml if they are name spaced by environment.
I would expect Rails.application.credentials to do the same. There are instances where data like third-party API keys are still unique to the loaded environment. It would be nice to be able to store these in the encrypted credentials as well.
This is intentional behavior. For details, please see the description of #30067.
Also, please use the mailing list or StackOverflow for questions/help, where a wider community will be able to help you. We reserve the issues tracker for issues only. Thanks!
Steps to reproduce
Run
Rails.application.credentials
from the console from any environment.Expected behavior
Rails.application.secrets
will return environment specific secrets fromsecrets.yml
if they are name spaced by environment.I would expect
Rails.application.credentials
to do the same. There are instances where data like third-party API keys are still unique to the loaded environment. It would be nice to be able to store these in the encrypted credentials as well.Instead of having to do this:
This is preferred:
With a credentials file structured like this:
Actual behavior
Rails.application.credentials
returns all credentials at root level.System configuration
Rails version: 5.2.0.beta2
Ruby version: 2.4.2
The text was updated successfully, but these errors were encountered: