X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4347d9d3b00a8fffe78daa93eac5b490905f9ac8..0bbdadd727a37ee71d4a8c89b50ce2060d6a6240:/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