summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-24 16:34:53 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-05 09:32:13 +0200
commitc68bf4327b3e4811e001adeca84ad0f88c421455 (patch)
tree6bb53dcb2f6f8439bf05f2a0344959e2eccbf6e2
parentb8960354fecdaf0a19a370f00f7caad147c57e62 (diff)
downloadgitlab-ce-c68bf4327b3e4811e001adeca84ad0f88c421455.tar.gz
Use wrap_parameters in pipelines controller
This makes it possible to workaround a bug in `safe_constantize` which caused a `LoadError` exception when doing ``` "Pipeline".safe_constantize LoadError: Unable to autoload constant Pipeline, expected /home/grzesiek/gdk/gitlab/app/models/ci/pipeline.rb to define it ``` See https://github.com/rails/rails/issues/28854 for more details.
-rw-r--r--app/controllers/projects/pipelines_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/projects/pipelines_controller.rb b/app/controllers/projects/pipelines_controller.rb
index 95478da019e..2908036607a 100644
--- a/app/controllers/projects/pipelines_controller.rb
+++ b/app/controllers/projects/pipelines_controller.rb
@@ -6,6 +6,8 @@ class Projects::PipelinesController < Projects::ApplicationController
before_action :authorize_update_pipeline!, only: [:retry, :cancel]
before_action :builds_enabled, only: :charts
+ wrap_parameters Ci::Pipeline
+
def index
@scope = params[:scope]
@pipelines = PipelinesFinder