X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/582402ba8fe5cb3f7a9934844cf33678a3365f45..baea8dc10eb0399e37850cc5ab857f392f780f1f:/app/models/way.rb diff --git a/app/models/way.rb b/app/models/way.rb index 0150a2ee3..724965ddf 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.collect { |t| [t.k, t.v] }.to_h end attr_writer :nds, :tags