discourse/spec/support/i18n_helpers.rb
Jarek Radosz 5cb84f8dcf
DEV: Revert rails 7.1 upgrade (#27522)
* Revert "FIX: Set `override_level` on Logster loggers (#27519)"

This reverts commit c1b0488c54.

* Revert "DEV: Make parameters optional to all FakeLogger methods"

This reverts commit 3318dad7b4.

* Revert "FIX: Remove references to `Rails.logger.chained`"

This reverts commit f595d599dd.

* Revert "DEV: Upgrade Rails to 7.1"

This reverts commit 081b00391e.
2024-06-18 23:48:30 +02:00

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