diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-28 15:33:19 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-29 10:47:04 +0200 |
commit | 0fa4ab5fd8e0cb775ff4fe75d011ff717f0b3945 (patch) | |
tree | ecfe84f8c11e4aca4643570dff1f31eb91ff50f7 /app/models/ci/project.rb | |
parent | e60647f011e30c215dfe596e079c616545071732 (diff) | |
download | gitlab-ce-0fa4ab5fd8e0cb775ff4fe75d011ff717f0b3945.tar.gz |
Rename commits to ci_commits
Diffstat (limited to 'app/models/ci/project.rb')
-rw-r--r-- | app/models/ci/project.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/app/models/ci/project.rb b/app/models/ci/project.rb index ba6e320426c..77cce261fc8 100644 --- a/app/models/ci/project.rb +++ b/app/models/ci/project.rb @@ -48,8 +48,6 @@ module Ci accepts_nested_attributes_for :variables, allow_destroy: true - delegate :commits, :builds, to: :gl_project - # # Validations # @@ -210,5 +208,13 @@ module Ci def setup_finished? commits.any? end + + def commits + gl_project.ci_commits + end + + def builds + gl_project.ci_builds + end end end |