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

Merge pull request #40159 from hahmed/fix-reference-to-rails-command-without-bin

Prefer bin/rails for the credentials command
This commit is contained in:
Ryuta Kamizono 2020-09-04 11:16:52 +09:00 committed by GitHub
commit 7da82b0fc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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