feat(svr): enablable from configuration
This commit is contained in:
parent
c9bde31ef2
commit
69e673e47e
3 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@ class SVASVRConfiguration
|
|||
UNIT_OPTIONS = ['days', 'weeks', 'months']
|
||||
RESUME_OPTIONS = ['continue', 'reset']
|
||||
|
||||
validates :decision, inclusion: { in: DECISION_OPTIONS.without('svr') }
|
||||
validates :decision, inclusion: { in: DECISION_OPTIONS }
|
||||
validates :period, presence: true, numericality: { only_integer: true }, if: -> { enabled? }
|
||||
validates :unit, presence: true, inclusion: { in: UNIT_OPTIONS }, if: -> { enabled? }
|
||||
validates :resume, presence: true, inclusion: { in: RESUME_OPTIONS }, if: -> { enabled? }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue