Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOswaldo Ferreira <oswaldo@gitlab.com>2018-02-22 19:53:35 +0300
committerOswaldo Ferreira <oswaldo@gitlab.com>2018-02-22 19:59:14 +0300
commita8c523d98b7dc18eae973b70e7743e8551dc09fd (patch)
treeaf85d53868c7ed0317c481447499d084ca2811f2 /app/controllers
parentdcac35b48487bb18fb5d9e59dcd3690627a20bbf (diff)
Move project presenter instance creation to controller
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 0370edc6e20..d9aa95fcb3d 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -114,6 +114,8 @@ class ProjectsController < Projects::ApplicationController
respond_to do |format|
format.html do
@notification_setting = current_user.notification_settings_for(@project) if current_user
+ @project = @project.present(current_user: current_user)
+
render_landing_page
end