X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2d50a840049e0634ebc548026c41a397747af061..2cd7af7e0b2ad97687849576ed4e3f52c37a6d55:/app/models/way.rb diff --git a/app/models/way.rb b/app/models/way.rb index 7bb82b281..933cb7c8b 100644 --- a/app/models/way.rb +++ b/app/models/way.rb @@ -22,7 +22,6 @@ class Way < ApplicationRecord include ConsistencyValidations include NotRedactable - include ObjectMetadata self.table_name = "current_ways" @@ -113,7 +112,7 @@ class Way < ApplicationRecord end def tags - @tags ||= way_tags.collect { |t| [t.k, t.v] }.to_h + @tags ||= way_tags.to_h { |t| [t.k, t.v] } end attr_writer :nds, :tags