X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4abd9cfcf19701bf43322374c5df6dd586449e54..0bd3229f89414e4c7e17bb8a4e6532ce2e30f5d0:/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