X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/89e976c6e57c9aa8afae00437aaf4399ea5fc58f..24ee5618ce06105fc8dd7baf641af08d96365c41:/app/models/segment.rb diff --git a/app/models/segment.rb b/app/models/segment.rb index b6f60ec3f..14949879d 100644 --- a/app/models/segment.rb +++ b/app/models/segment.rb @@ -78,6 +78,8 @@ class Segment < ActiveRecord::Base el1['id'] = self.id.to_s el1['from'] = self.node_a.to_s el1['to'] = self.node_b.to_s + + user_display_name_cache = {} if user_display_name_cache.nil? if user_display_name_cache and user_display_name_cache[self.user_id] # use the cache if available else