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:
authorRydkin Maxim <maks.rydkin@gmail.com>2017-04-04 22:21:12 +0300
committerRydkin Maxim <maks.rydkin@gmail.com>2017-04-04 22:21:12 +0300
commit2d4fd769a7a53f6f8ac1cd0331a8eb6b625dc8b6 (patch)
tree385813dd266d05ecd2b01be9364be2c902623512 /app/controllers/projects/pipelines_controller.rb
parentc9806b47b868ca5fe424476077262edc1d64cac0 (diff)
replaced one more helper with presenter
Diffstat (limited to 'app/controllers/projects/pipelines_controller.rb')
-rw-r--r--app/controllers/projects/pipelines_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/pipelines_controller.rb b/app/controllers/projects/pipelines_controller.rb
index 43a1abaa662..0da0420185d 100644
--- a/app/controllers/projects/pipelines_controller.rb
+++ b/app/controllers/projects/pipelines_controller.rb
@@ -114,7 +114,7 @@ class Projects::PipelinesController < Projects::ApplicationController
end
def pipeline
- @pipeline ||= project.pipelines.find_by!(id: params[:id])
+ @pipeline ||= project.pipelines.find_by!(id: params[:id]).present(current_user: current_user)
end
def commit