summaryrefslogtreecommitdiff
path: root/app/validators
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-04-04 18:44:25 +0900
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-04-06 23:46:58 +0900
commit914bef671f54c04a0d36d8e0f8c9830d6dea7b03 (patch)
tree46067eb41371f1b5a1cbc9a27444ecbc40c45043 /app/validators
parent27f981b2901098f894e587bbd96b09e2a0f0c404 (diff)
downloadgitlab-ce-914bef671f54c04a0d36d8e0f8c9830d6dea7b03.tar.gz
Move Ci::CronParser to Gitlab::Ci::CronParser
Diffstat (limited to 'app/validators')
-rw-r--r--app/validators/cron_validator.rb2
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