Skip to content

Commit

Permalink
Reload autoloaded classes in initializers only in dev env
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-hank committed Dec 13, 2021
1 parent d70e61a commit 4389c4d
Show file tree
Hide file tree
Showing 2 changed files with 453 additions and 449 deletions.
12 changes: 7 additions & 5 deletions config/initializers/lumen.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module Lumen
REDACTION_MASK = '[REDACTED]'.freeze
UNKNOWN_WORK = Work.unknown rescue nil
SETTINGS = LumenSetting.all rescue nil
TRUNCATION_TOKEN_URLS_ACTIVE_PERIOD = 24.hours
Rails.application.config.to_prepare do
module Lumen
REDACTION_MASK = '[REDACTED]'.freeze
UNKNOWN_WORK = Work.unknown rescue nil
SETTINGS = LumenSetting.all rescue nil
TRUNCATION_TOKEN_URLS_ACTIVE_PERIOD = 24.hours
end
end
Loading

0 comments on commit 4389c4d

Please sign in to comment.