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:
commit
7da82b0fc3
1 changed files with 2 additions and 3 deletions
|
@ -93,13 +93,12 @@ module Rails
|
||||||
|
|
||||||
def missing_credentials_message
|
def missing_credentials_message
|
||||||
if credentials.key.nil?
|
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
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
def content_path
|
def content_path
|
||||||
@content_path ||= options[:environment] ? "config/credentials/#{options[:environment]}.yml.enc" : "config/credentials.yml.enc"
|
@content_path ||= options[:environment] ? "config/credentials/#{options[:environment]}.yml.enc" : "config/credentials.yml.enc"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue