X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/582402ba8fe5cb3f7a9934844cf33678a3365f45..0d5e634669e4741dcda310128a943dfcb84767c0:/app/models/node.rb diff --git a/app/models/node.rb b/app/models/node.rb index a5346e87f..5e799c8d9 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -207,7 +207,7 @@ class Node < ApplicationRecord end def tags - @tags ||= Hash[node_tags.collect { |t| [t.k, t.v] }] + @tags ||= node_tags.collect { |t| [t.k, t.v] }.to_h end attr_writer :tags