1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Prefer bin/rails for the credentials command

This commit is contained in:
Haroon Ahmed 2020-09-02 20:52:12 +01:00
parent 9055156668
commit 3119672411

View file

@ -93,13 +93,12 @@ module Rails
def missing_credentials_message
if credentials.key.nil?
"Missing '#{key_path}' to decrypt credentials. See `rails credentials:help`"
"Missing '#{key_path}' to decrypt credentials. See `bin/rails credentials:help`"
else
"File '#{content_path}' does not exist. Use `rails credentials:edit` to change that."
"File '#{content_path}' does not exist. Use `bin/rails credentials:edit` to change that."
end
end
def content_path
@content_path ||= options[:environment] ? "config/credentials/#{options[:environment]}.yml.enc" : "config/credentials.yml.enc"
end