X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5966acc207874f3196a43700cb9306411c77fe47..aec7af87d79c25c5eabdda5efe4cce54f9131f06:/app/models/old_node.rb diff --git a/app/models/old_node.rb b/app/models/old_node.rb index 81d8e331f..3caf0442b 100644 --- a/app/models/old_node.rb +++ b/app/models/old_node.rb @@ -82,7 +82,7 @@ class OldNode < ApplicationRecord end def tags - @tags ||= old_tags.collect { |t| [t.k, t.v] }.to_h + @tags ||= old_tags.to_h { |t| [t.k, t.v] } end attr_writer :tags