X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0982f17457563913dcbd63bb53c37e202aadf727..2d50a840049e0634ebc548026c41a397747af061:/app/models/old_node.rb diff --git a/app/models/old_node.rb b/app/models/old_node.rb index fe1a90013..620cc24d2 100644 --- a/app/models/old_node.rb +++ b/app/models/old_node.rb @@ -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