X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/89e976c6e57c9aa8afae00437aaf4399ea5fc58f..4769eec5aab27cdb0ae6ac1b7bb713da720feb93:/app/models/segment.rb?ds=sidebyside 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