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:
authorShinya Maeda <shinya@gitlab.com>2017-10-05 20:45:15 +0300
committerShinya Maeda <shinya@gitlab.com>2017-10-05 20:45:15 +0300
commit6712762b9d6e0391b1a38ca17cc3d982a336bbf9 (patch)
treebbb3b008409a18aca0bbd86480ac4b52eb33668e /app/controllers
parentd27b113b49c90ba7d184f0d7965b63e32d260ebf (diff)
Add ClusterPresenter. Fix Static Analysys.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects/clusters_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/clusters_controller.rb b/app/controllers/projects/clusters_controller.rb
index bd286b87a29..77644602b72 100644
--- a/app/controllers/projects/clusters_controller.rb
+++ b/app/controllers/projects/clusters_controller.rb
@@ -81,7 +81,7 @@ class Projects::ClustersController < Projects::ApplicationController
private
def cluster
- @cluster ||= project.cluster
+ @cluster ||= project.cluster.present(current_user: current_user)
end
def create_params