X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/88ba316abeecffccd1cb51c63ce5594c95023624..fea1b5b88de731dd35d1f79d36ec40a8e8a1f6af:/app/models/way.rb diff --git a/app/models/way.rb b/app/models/way.rb index 0150a2ee3..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 ||= Hash[way_tags.collect { |t| [t.k, t.v] }] + @tags ||= way_tags.to_h { |t| [t.k, t.v] } end attr_writer :nds, :tags