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