aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/credentials/credentials_command.rb
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-09-12 17:06:59 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-09-14 07:17:25 +0900
commitd5d41c82810f96ee7ab5a34aeb75b46fe407a596 (patch)
tree18911afc18ef5c8fdf7407f5767a0905bde28d13 /railties/lib/rails/commands/credentials/credentials_command.rb
parent69f976b859cae7f9d050152103da018b7f5dda6d (diff)
downloadrails-d5d41c82810f96ee7ab5a34aeb75b46fe407a596.tar.gz
rails-d5d41c82810f96ee7ab5a34aeb75b46fe407a596.tar.bz2
rails-d5d41c82810f96ee7ab5a34aeb75b46fe407a596.zip
Make master key added to gitignore the same value as when creating appplication
For gitignore generated by `rails new`, key with a leading slash is specified. https://github.com/rails/rails/blob/69f976b859cae7f9d050152103da018b7f5dda6d/railties/lib/rails/generators/rails/app/templates/gitignore#L11 Therefore, when executing `credentials:edit`, also need leading slack. In order to avoid such a difference, fixed to use same method for `rails new` and `credentials:edit`.
Diffstat (limited to 'railties/lib/rails/commands/credentials/credentials_command.rb')
-rw-r--r--railties/lib/rails/commands/credentials/credentials_command.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/credentials/credentials_command.rb b/railties/lib/rails/commands/credentials/credentials_command.rb
index 39a4e3c833..88fb032d84 100644
--- a/railties/lib/rails/commands/credentials/credentials_command.rb
+++ b/railties/lib/rails/commands/credentials/credentials_command.rb
@@ -53,7 +53,6 @@ module Rails
def ensure_master_key_has_been_added
master_key_generator.add_master_key_file
- master_key_generator.ignore_master_key_file
end
def ensure_credentials_have_been_added