Commit e8a767a4 authored by Arturo Herrero's avatar Arturo Herrero

Combine default_value_for together

parent 3e4e6327
......@@ -26,6 +26,7 @@ class Service < ApplicationRecord
default_value_for :active, false
default_value_for :alert_events, true
default_value_for :category, 'common'
default_value_for :commit_events, true
default_value_for :confidential_issues_events, true
default_value_for :confidential_note_events, true
......@@ -81,8 +82,6 @@ class Service < ApplicationRecord
scope :alert_hooks, -> { where(alert_events: true, active: true) }
scope :deployment, -> { where(category: 'deployment') }
default_value_for :category, 'common'
def activated?
active
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment