X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7609c118843d66c37dd428a2a162a4e15289b6ce..8dc91ce6a64db96d8295fd3d9dff2779c02e4a71:/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