Skip to content

Commit

Permalink
Only load secret key base if it's not loaded yet
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian-Hirt committed Dec 28, 2023
1 parent cc4fb76 commit 7efded8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 7.1

# Load the secret key base from figaro
credentials.secret_key_base = Figaro.env.secret_key_base!
# Load the secret key base from figaro if they're not present yet
credentials.secret_key_base ||= Figaro.env.secret_key_base

# Time tone
config.time_zone = 'Bern'
Expand Down

0 comments on commit 7efded8

Please sign in to comment.