diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-05-24 15:13:51 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-05-31 14:17:49 +0200 |
commit | 161af17c1b69e7e00aefcd4f540a55755259ceda (patch) | |
tree | 6a2c94a350a2fa53e05f07927df543ed3ba1a7bc /app/models/project.rb | |
parent | 19ee16a0f85dd4bacddbd066237e62a1bbb7113a (diff) | |
download | gitlab-ce-trigger-source.tar.gz |
Introduce source to pipeline entitytrigger-source
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index a59095cb25c..6d0b722319c 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -1064,11 +1064,6 @@ class Project < ActiveRecord::Base pipelines.order(id: :desc).find_by(sha: sha, ref: ref) end - def ensure_pipeline(ref, sha, current_user = nil) - pipeline_for(ref, sha) || - pipelines.create(sha: sha, ref: ref, user: current_user) - end - def enable_ci project_feature.update_attribute(:builds_access_level, ProjectFeature::ENABLED) end |