diff options
author | Bob Van Landuyt <bob@gitlab.com> | 2017-05-11 11:41:36 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2017-05-15 14:27:01 +0200 |
commit | cac7e03fa1cb39a685bcde87d4d67fb17c4f48f2 (patch) | |
tree | d92728e5704a9409a372aff7a8f22b32c436caf3 /app/models/service.rb | |
parent | 6c6d2bf047f8694e8b58db0feea6a3f320c372de (diff) | |
download | gitlab-ce-cac7e03fa1cb39a685bcde87d4d67fb17c4f48f2.tar.gz |
Rename `build_events` to `job_events` in code
Diffstat (limited to 'app/models/service.rb')
-rw-r--r-- | app/models/service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/service.rb b/app/models/service.rb index c71a7d169ec..8916f88076e 100644 --- a/app/models/service.rb +++ b/app/models/service.rb @@ -12,7 +12,7 @@ class Service < ActiveRecord::Base default_value_for :merge_requests_events, true default_value_for :tag_push_events, true default_value_for :note_events, true - default_value_for :build_events, true + default_value_for :job_events, true default_value_for :pipeline_events, true default_value_for :wiki_page_events, true @@ -40,7 +40,7 @@ class Service < ActiveRecord::Base scope :confidential_issue_hooks, -> { where(confidential_issues_events: true, active: true) } scope :merge_request_hooks, -> { where(merge_requests_events: true, active: true) } scope :note_hooks, -> { where(note_events: true, active: true) } - scope :build_hooks, -> { where(build_events: true, active: true) } + scope :job_hooks, -> { where(job_events: true, active: true) } scope :pipeline_hooks, -> { where(pipeline_events: true, active: true) } scope :wiki_page_hooks, -> { where(wiki_page_events: true, active: true) } scope :external_issue_trackers, -> { issue_trackers.active.without_defaults } |