]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_node.rb
Update banner FAQ.
[rails.git] / app / models / old_node.rb
index fe1a900136466472cb258198c3caa6a0b796fdd4..620cc24d227029091e610bfccb0813bb792c0449 100644 (file)
@@ -105,7 +105,7 @@ class OldNode < 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 :tags