X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/582402ba8fe5cb3f7a9934844cf33678a3365f45..5761371a561f785e17e5403cd47f76ecd3604eff:/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