未验证 提交 7da82b0f 编写于 作者: R Ryuta Kamizono 提交者: GitHub

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

Prefer bin/rails for the credentials command
......@@ -93,13 +93,12 @@ def change_credentials_in_system_editor
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册