2_limited_federation_mode.rb 372 B

1234567
  1. # frozen_string_literal: true
  2. Rails.application.configure do
  3. config.x.limited_federation_mode = (ENV['LIMITED_FEDERATION_MODE'] || ENV['WHITELIST_MODE']) == 'true'
  4. warn 'WARN: The environment variable WHITELIST_MODE has been replaced with LIMITED_FEDERATION_MODE, you should rename this environment variable in your configuration.' if ENV.key?('WHITELIST_MODE')
  5. end