diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-04-04 12:44:25 +0300 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-04-06 17:46:58 +0300 |
commit | 914bef671f54c04a0d36d8e0f8c9830d6dea7b03 (patch) | |
tree | 46067eb41371f1b5a1cbc9a27444ecbc40c45043 /app/validators | |
parent | 27f981b2901098f894e587bbd96b09e2a0f0c404 (diff) |
Move Ci::CronParser to Gitlab::Ci::CronParser
Diffstat (limited to 'app/validators')
-rw-r--r-- | app/validators/cron_validator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/validators/cron_validator.rb b/app/validators/cron_validator.rb index 4d9a0d62a4c..31eaa4147a5 100644 --- a/app/validators/cron_validator.rb +++ b/app/validators/cron_validator.rb @@ -3,7 +3,7 @@ # Custom validator for Cron. class CronValidator < ActiveModel::EachValidator def validate_each(record, attribute, value) - cron_parser = Ci::CronParser.new(record.cron, record.cron_time_zone) + cron_parser = Gitlab::Ci::CronParser.new(record.cron, record.cron_time_zone) is_valid_cron, is_valid_cron_time_zone = cron_parser.validation if !is_valid_cron |