From c19fa02fa020d4b7aa69b3bbc51a4a257163325b Mon Sep 17 00:00:00 2001 From: Sean McGivern Date: Thu, 4 Aug 2016 10:17:35 +0100 Subject: [PATCH] Ignore Rails/Exit cop in initializer We do not want to proceed with loading the app in this case, as it could lose a secret needed to decrypt values in the database. --- config/initializers/secret_token.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/secret_token.rb b/config/initializers/secret_token.rb index 7ab71b1c2b9..291fa6c0abc 100644 --- a/config/initializers/secret_token.rb +++ b/config/initializers/secret_token.rb @@ -75,7 +75,7 @@ Rails.application.secrets.#{key} was blank, but the literal value in config/secr This probably isn't the expected value for this secret. To keep using a literal Erb string in config/secrets.yml, replace `<%` with `<%%`. EOM - exit 1 + exit 1 # rubocop:disable Rails/Exit end new