X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/baea8dc10eb0399e37850cc5ab857f392f780f1f..2d47d6b4f8c4309189704c2748ea92eeeaff6c4d:/app/models/old_way.rb?ds=inline diff --git a/app/models/old_way.rb b/app/models/old_way.rb index 9acf8665d..7af8906b1 100644 --- a/app/models/old_way.rb +++ b/app/models/old_way.rb @@ -80,7 +80,7 @@ class OldWay < 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 :nds, :tags