diff --git a/lib/routing_filters.rb b/lib/routing_filters.rb index 972b0eb21de..68ae255c23f 100644 --- a/lib/routing_filters.rb +++ b/lib/routing_filters.rb @@ -33,3 +33,9 @@ def locales=(locales) end end end + +ActionDispatch::Routing::RouteSet::NamedRouteCollection::UrlHelper.class_eval do + def self.optimize_helper?(route) + false + end +end