diff options
Diffstat (limited to 'app/models/dependency_proxy/group_setting.rb')
-rw-r--r-- | app/models/dependency_proxy/group_setting.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/dependency_proxy/group_setting.rb b/app/models/dependency_proxy/group_setting.rb index bcf09b27129..3a7ae66a263 100644 --- a/app/models/dependency_proxy/group_setting.rb +++ b/app/models/dependency_proxy/group_setting.rb @@ -3,7 +3,7 @@ class DependencyProxy::GroupSetting < ApplicationRecord belongs_to :group - validates :group, presence: true + attribute :enabled, default: true - default_value_for :enabled, true + validates :group, presence: true end |