X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0e78061cdba5cfb3f299f57b7643d2b396ee235b..0dc14b6e79aa3e1c91a6f30d72c5f8c673633987:/app/models/node.rb?ds=inline diff --git a/app/models/node.rb b/app/models/node.rb index 5e799c8d9..3214564c8 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -27,7 +27,6 @@ class Node < ApplicationRecord include GeoRecord include ConsistencyValidations include NotRedactable - include ObjectMetadata self.table_name = "current_nodes" @@ -207,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