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