Add feature flag to schedulable? method

This commit is contained in:
Shinya Maeda 2018-09-25 14:39:32 +09:00 committed by Alessio Caiazza
parent e0cfa9279c
commit f76f6df193

View file

@ -260,7 +260,8 @@ module Ci
end end
def schedulable? def schedulable?
self.when == 'delayed' && options[:start_in].present? Feature.enabled?('ci_enable_scheduled_build') &&
self.when == 'delayed' && options[:start_in].present?
end end
def options_scheduled_at def options_scheduled_at