]> git.openstreetmap.org Git - rails.git/commitdiff
Fix rubocop warnings
authorTom Hughes <tom@compton.nu>
Mon, 26 Sep 2016 11:38:54 +0000 (12:38 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 26 Sep 2016 11:38:54 +0000 (12:38 +0100)
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