diff --git a/lib/alaveteli_localization/railtie.rb b/lib/alaveteli_localization/railtie.rb index 61de19c42f..9fc034a1d7 100644 --- a/lib/alaveteli_localization/railtie.rb +++ b/lib/alaveteli_localization/railtie.rb @@ -7,6 +7,7 @@ class Railtie < Rails::Railtie require 'alaveteli_localization/hyphenated_locale' require 'alaveteli_localization/underscorred_locale' + require 'routing_filters' require 'i18n_fixes' paths = ['locale'] @@ -20,10 +21,6 @@ class Railtie < Rails::Railtie I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks) - AlaveteliLocalization.set_default_locale_urls( - AlaveteliConfiguration.include_default_locale_in_urls - ) - if Rails.version < '7.0.0' && Rails.env.development? ## # Ideally the following would only be called in the `after_initialize`