X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5652e9f6b95c1e44db597c0136a985aef5e28ad5..b86390d303030ae5faca278445ca8b404c1937a4:/app/models/node.rb diff --git a/app/models/node.rb b/app/models/node.rb index 8bfac993b..3214564c8 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -206,7 +206,7 @@ class Node < ApplicationRecord end def tags - @tags ||= node_tags.collect { |t| [t.k, t.v] }.to_h + @tags ||= node_tags.to_h { |t| [t.k, t.v] } end attr_writer :tags