X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e91c02f2ceb2b72a77846a0c31f5eca22b9b0a65..fea1b5b88de731dd35d1f79d36ec40a8e8a1f6af:/app/models/old_relation.rb diff --git a/app/models/old_relation.rb b/app/models/old_relation.rb index d0a03ac25..29edb90ad 100644 --- a/app/models/old_relation.rb +++ b/app/models/old_relation.rb @@ -82,7 +82,7 @@ class OldRelation < ApplicationRecord end def tags - @tags ||= old_tags.collect { |t| [t.k, t.v] }.to_h + @tags ||= old_tags.to_h { |t| [t.k, t.v] } end attr_writer :members, :tags