diff options
author | Matija Čupić <matteeyah@gmail.com> | 2019-07-23 22:29:12 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2019-07-26 01:17:52 +0300 |
commit | 38ab1ae2f200e2071ea7329e106beb1b9232f44c (patch) | |
tree | 48f38c5e0749501ba6652b7062f677d5cda4adbf /app/controllers/projects | |
parent | 1eab06571496c1b7950dc081435fa21058b614c8 (diff) |
Rename latest_successful to be more explicit
* Reword Project#latest_successful_build_for to
Project#latest_successful_build_for_ref
* Reword Ci::Pipeline#latest_successful_for to
Ci::Pipeline#latest_successful_build_for_ref
Diffstat (limited to 'app/controllers/projects')
-rw-r--r-- | app/controllers/projects/build_artifacts_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/build_artifacts_controller.rb b/app/controllers/projects/build_artifacts_controller.rb index 4274c356227..99f4524eec5 100644 --- a/app/controllers/projects/build_artifacts_controller.rb +++ b/app/controllers/projects/build_artifacts_controller.rb @@ -51,6 +51,6 @@ class Projects::BuildArtifactsController < Projects::ApplicationController def job_from_ref return unless @ref_name - project.latest_successful_build_for(params[:job], @ref_name) + project.latest_successful_build_for_ref(params[:job], @ref_name) end end |