X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5652e9f6b95c1e44db597c0136a985aef5e28ad5..a26100c7ec48bceb50b0c3b8406809dc88cd1a65:/app/models/relation.rb diff --git a/app/models/relation.rb b/app/models/relation.rb index 25564940b..a231feddb 100644 --- a/app/models/relation.rb +++ b/app/models/relation.rb @@ -130,7 +130,7 @@ class Relation < ApplicationRecord end def tags - @tags ||= relation_tags.collect { |t| [t.k, t.v] }.to_h + @tags ||= relation_tags.to_h { |t| [t.k, t.v] } end attr_writer :members, :tags