X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f940a154f31460d781f68ba4af0bb4fc5b0e632a..0dc04efef698b54da1357f9a41a6dc6c9b260075:/config/initializers/router.rb?ds=sidebyside diff --git a/config/initializers/router.rb b/config/initializers/router.rb index 0987fa018..849aba2ad 100644 --- a/config/initializers/router.rb +++ b/config/initializers/router.rb @@ -1,14 +1,14 @@ # Some versions of ruby seem to accidentally force the encoding # as part of normalize_path and some don't -module OSM +module OpenStreetMap module Router module ForceEncoding def normalize_path(path) - super(path).force_encoding("UTF-8") + super.force_encoding("UTF-8") end end end end -ActionDispatch::Journey::Router::Utils.singleton_class.prepend(OSM::Router::ForceEncoding) +ActionDispatch::Journey::Router::Utils.singleton_class.prepend(OpenStreetMap::Router::ForceEncoding)