X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/88ba316abeecffccd1cb51c63ce5594c95023624..722b9d27be8db25891078eea07189a94df25b368:/app/models/relation.rb diff --git a/app/models/relation.rb b/app/models/relation.rb index 5ed838e10..a231feddb 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.to_h { |t| [t.k, t.v] } end attr_writer :members, :tags