diff options
| author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-03-09 16:24:02 +0100 |
|---|---|---|
| committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-03-14 13:20:35 +0100 |
| commit | 0672258915a0cf444802ffc50ad1cd914f4f11d4 (patch) | |
| tree | f8e389d36a5eb9a761e5b283fb0e2adddda60f9c /app/services/ci | |
| parent | 37ba5a12b515172b76d28e112ab9899823163717 (diff) | |
| download | gitlab-ce-0672258915a0cf444802ffc50ad1cd914f4f11d4.tar.gz | |
Cleanup CiCommit and CiBuild
- Remove all view related methods from Ci::Build and CommitStatus
- Remove unused Ci::Commit and Ci::Build methods
- Use polymorphism to render different types of CommitStatus
Diffstat (limited to 'app/services/ci')
| -rw-r--r-- | app/services/ci/image_for_build_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/ci/image_for_build_service.rb b/app/services/ci/image_for_build_service.rb index 005a5c4661c..50c95ced8a7 100644 --- a/app/services/ci/image_for_build_service.rb +++ b/app/services/ci/image_for_build_service.rb @@ -3,7 +3,7 @@ module Ci def execute(project, opts) sha = opts[:sha] || ref_sha(project, opts[:ref]) - commit = project.ci_commits.ordered.find_by(sha: sha) + commit = project.ci_commits.find_by(sha: sha) image_name = image_for_commit(commit) image_path = Rails.root.join('public/ci', image_name) |
