X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/5966acc207874f3196a43700cb9306411c77fe47..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