Cache allowed_ids

This commit is contained in:
Lin Jen-Shin 2017-11-22 17:32:10 +08:00
parent 418947b6ce
commit 689658456f
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ module Gitlab
end
def allowed_ids
allowed_ids_finder_class
@allowed_ids ||= allowed_ids_finder_class
.new(@options[:current_user], project_id: @project.id)
.execute.where(id: event_result_ids).pluck(:id)
end