]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_way.rb
Merge remote-tracking branch 'upstream/pull/3194'
[rails.git] / app / models / old_way.rb
index 247123005c3d4464ec1b49a52254e12ad4ff91c9..3260f2a1f57acbed3755fe691949d8e14fa1fbbc 100644 (file)
@@ -81,7 +81,7 @@ class OldWay < ApplicationRecord
   end
 
   def tags
-    @tags ||= Hash[old_tags.collect { |t| [t.k, t.v] }]
+    @tags ||= old_tags.collect { |t| [t.k, t.v] }.to_h
   end
 
   attr_writer :nds, :tags