]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/way.rb
Switch to using 'rails test:all' in documentation and CI
[rails.git] / app / models / way.rb
index 0150a2ee398d5dc793c335906fa5d1e0371176c8..7bb82b281bc4e10603ea2ffc29eee928c4ff9709 100644 (file)
@@ -113,7 +113,7 @@ class Way < ApplicationRecord
   end
 
   def tags
   end
 
   def tags
-    @tags ||= Hash[way_tags.collect { |t| [t.k, t.v] }]
+    @tags ||= way_tags.collect { |t| [t.k, t.v] }.to_h
   end
 
   attr_writer :nds, :tags
   end
 
   attr_writer :nds, :tags