X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5652e9f6b95c1e44db597c0136a985aef5e28ad5..0d1147e7812c88ae6504a0b090a753375fa9e9f8:/app/models/way.rb diff --git a/app/models/way.rb b/app/models/way.rb index 724965ddf..933cb7c8b 100644 --- a/app/models/way.rb +++ b/app/models/way.rb @@ -112,7 +112,7 @@ class Way < ApplicationRecord end def tags - @tags ||= way_tags.collect { |t| [t.k, t.v] }.to_h + @tags ||= way_tags.to_h { |t| [t.k, t.v] } end attr_writer :nds, :tags