summaryrefslogtreecommitdiff
path: root/app/controllers/projects/milestones_controller.rb
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-04-24 08:58:15 -0700
committerStan Hu <stanhu@gmail.com>2017-04-24 09:33:12 -0700
commit68bb2a53383d79e5e3e38f9894f0ea61c3701f46 (patch)
tree4ef407cf2d8e4e8364cf094e216f3ea9c7cf2f9a /app/controllers/projects/milestones_controller.rb
parentbbcb7e5e96b030b4b2a3d03ee9c715853e6528be (diff)
downloadgitlab-ce-68bb2a53383d79e5e3e38f9894f0ea61c3701f46.tar.gz
Optimize project namespace lookup for milestones and add specssh-optimize-milestone-polymorphic-url
Diffstat (limited to 'app/controllers/projects/milestones_controller.rb')
-rw-r--r--app/controllers/projects/milestones_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/projects/milestones_controller.rb b/app/controllers/projects/milestones_controller.rb
index 408c0c60cb0..d0dd524c484 100644
--- a/app/controllers/projects/milestones_controller.rb
+++ b/app/controllers/projects/milestones_controller.rb
@@ -23,6 +23,7 @@ class Projects::MilestonesController < Projects::ApplicationController
respond_to do |format|
format.html do
+ @project_namespace = @project.namespace.becomes(Namespace)
@milestones = @milestones.includes(:project)
@milestones = @milestones.page(params[:page])
end