X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/582402ba8fe5cb3f7a9934844cf33678a3365f45..a26100c7ec48bceb50b0c3b8406809dc88cd1a65:/app/models/node.rb diff --git a/app/models/node.rb b/app/models/node.rb index a5346e87f..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 ||= Hash[node_tags.collect { |t| [t.k, t.v] }] + @tags ||= node_tags.to_h { |t| [t.k, t.v] } end attr_writer :tags