X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/582402ba8fe5cb3f7a9934844cf33678a3365f45..f2c57e0d71bbcb407ef43ee7c8c8458c76faeab6:/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