X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e91c02f2ceb2b72a77846a0c31f5eca22b9b0a65..2122d1843ebee7dd3fe21a0b647cfd9e3750dfb7:/app/models/way.rb?ds=sidebyside 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