]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/geocoder_controller.rb
Work around upcoming minitest insanity
[rails.git] / app / controllers / geocoder_controller.rb
index 8ad51b234d2a7343baa60e68d4e628d7b182a2f0..57f86ec9fc7dd704d1b3e1d6347a1b6b28f8bbfd 100644 (file)
@@ -181,7 +181,7 @@ class GeocoderController < ApplicationController
         prefix_name = t "geocoder.search_osm_nominatim.admin_levels.level#{rank}", :default => prefix_name
         place.elements["extratags"].elements.each("tag") do |extratag|
           if extratag.attributes["key"] == "place"
-            prefix_name = t "geocoder.search_osm_nominatim.prefix.place.#{extratag.attributes["value"]}", :default => prefix_name
+            prefix_name = t "geocoder.search_osm_nominatim.prefix.place.#{extratag.attributes['value']}", :default => prefix_name
           end
         end
       end