]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/node.rb
Fix new rubocop warning
[rails.git] / app / models / node.rb
index a5346e87f39b71f297b9b6b4948d01f271d2618e..8bfac993b5bd9fdd2d512a4007dfff1304cae2ec 100644 (file)
@@ -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.collect { |t| [t.k, t.v] }.to_h
   end
 
   attr_writer :tags