Skip to content
Snippets Groups Projects
Commit c68bf432 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

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.
parent b8960354
No related branches found
No related tags found
1 merge request!10584Resolve: "Pipelines: When we retry a pipeline 2 requests are made to the pipelines endpoint"
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment