Bundle update rubocop and auto correct style issues

This commit is contained in:
Patrick Gansterer 2022-05-27 21:57:06 +02:00
parent 22fd814193
commit 9c9ebdf557
13 changed files with 42 additions and 37 deletions

View file

@ -5,7 +5,7 @@
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
Foodsoft::Application.config.secret_key_base = begin
if (token = ENV['SECRET_KEY_BASE']).present?
if (token = ENV.fetch('SECRET_KEY_BASE', nil)).present?
token
elsif Rails.env.production? || Rails.env.staging?
raise "You must set SECRET_KEY_BASE"