Commit 1ae1d85c authored by Shinya Maeda's avatar Shinya Maeda Committed by Kamil Trzcinski

N/A to None. Revert validates from validates_presence_of.

parent fb8c49db
......@@ -10,7 +10,7 @@ module Ci
delegate :ref, to: :trigger, allow_nil: true
validates_presence_of :trigger
validates :trigger, presence: { unless: :importing? }
validates :cron, cron: true, presence: { unless: :importing? }
validates :cron_timezone, cron_timezone: true, presence: { unless: :importing? }
validates :ref, presence: { unless: :importing? }
......
......@@ -33,7 +33,7 @@
- if trigger.trigger_schedule.persisted?
= trigger.trigger_schedule.real_next_run
- else
N/A (External trigger)
None (External trigger)
%td.text-right.trigger-actions
- take_ownership_confirmation = "By taking ownership you will bind this trigger to your user account. With this the trigger will have access to all your projects as if it was you. Are you sure?"
......
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