]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/way.rb
Bump actions/checkout from 2.3.5 to 2.4.0
[rails.git] / app / models / way.rb
index 0150a2ee398d5dc793c335906fa5d1e0371176c8..724965ddfe4bc1a24b4de482bf6529ca131eeb90 100644 (file)
@@ -22,7 +22,6 @@ class Way < ApplicationRecord
 
   include ConsistencyValidations
   include NotRedactable
 
   include ConsistencyValidations
   include NotRedactable
-  include ObjectMetadata
 
   self.table_name = "current_ways"
 
 
   self.table_name = "current_ways"
 
@@ -113,7 +112,7 @@ class Way < ApplicationRecord
   end
 
   def tags
   end
 
   def tags
-    @tags ||= Hash[way_tags.collect { |t| [t.k, t.v] }]
+    @tags ||= way_tags.collect { |t| [t.k, t.v] }.to_h
   end
 
   attr_writer :nds, :tags
   end
 
   attr_writer :nds, :tags