X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/582402ba8fe5cb3f7a9934844cf33678a3365f45..26698d6d267ab410d082a9b774b3ad5f9dc86b05:/app/models/relation.rb diff --git a/app/models/relation.rb b/app/models/relation.rb index 5ed838e10..365ea533e 100644 --- a/app/models/relation.rb +++ b/app/models/relation.rb @@ -131,7 +131,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