mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 22:26:26 +08:00
5cb84f8dcf
* Revert "FIX: Set `override_level` on Logster loggers (#27519)" This reverts commitc1b0488c54
. * Revert "DEV: Make parameters optional to all FakeLogger methods" This reverts commit3318dad7b4
. * Revert "FIX: Remove references to `Rails.logger.chained`" This reverts commitf595d599dd
. * Revert "DEV: Upgrade Rails to 7.1" This reverts commit081b00391e
.
11 lines
255 B
Ruby
11 lines
255 B
Ruby
# frozen_string_literal: true
|
|
|
|
module I18nHelpers
|
|
def allow_missing_translations
|
|
Rails.application.config.i18n.raise_on_missing_translations = false
|
|
yield
|
|
ensure
|
|
Rails.application.config.i18n.raise_on_missing_translations = true
|
|
end
|
|
end
|