diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-07-28 15:35:02 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-07-28 15:35:02 +0300 |
commit | 9ae1ecf876e40ce9dd64c72e025f32e38c882fd6 (patch) | |
tree | 8803b574cf48b2c8bc38e6fce295065d737bc730 /app/controllers/projects/pipelines_settings_controller.rb | |
parent | 42c035ee38a6629090da07aea818f4c9e3733075 (diff) |
Extract build status badge metadata to separate class
Diffstat (limited to 'app/controllers/projects/pipelines_settings_controller.rb')
-rw-r--r-- | app/controllers/projects/pipelines_settings_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/pipelines_settings_controller.rb b/app/controllers/projects/pipelines_settings_controller.rb index 85ba706e5cd..75dd3648e45 100644 --- a/app/controllers/projects/pipelines_settings_controller.rb +++ b/app/controllers/projects/pipelines_settings_controller.rb @@ -3,7 +3,7 @@ class Projects::PipelinesSettingsController < Projects::ApplicationController def show @ref = params[:ref] || @project.default_branch || 'master' - @build_badge = Gitlab::Badge::Build.new(@project, @ref) + @build_badge = Gitlab::Badge::Build.new(@project, @ref).metadata end def update |