X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/582402ba8fe5cb3f7a9934844cf33678a3365f45..22377cbdd48a19473feff45d18e57e9501a3aceb:/app/models/relation.rb diff --git a/app/models/relation.rb b/app/models/relation.rb index 5ed838e10..25564940b 100644 --- a/app/models/relation.rb +++ b/app/models/relation.rb @@ -22,7 +22,6 @@ class Relation < ApplicationRecord include ConsistencyValidations include NotRedactable - include ObjectMetadata self.table_name = "current_relations" @@ -131,7 +130,7 @@ class Relation < ApplicationRecord end def tags - @tags ||= Hash[relation_tags.collect { |t| [t.k, t.v] }] + @tags ||= relation_tags.collect { |t| [t.k, t.v] }.to_h end attr_writer :members, :tags