diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-04-05 01:54:45 +0900 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-04-06 23:46:59 +0900 |
commit | 4688eb47c6fe135fb9baad5a5d56b1dfa685cc7f (patch) | |
tree | 73ed8531a88ff7088ea419aa4518be02cd82f3ae /app/validators/cron_validator.rb | |
parent | 1dbc888e3306f30ca0882aece86ccd1a817e0ab8 (diff) | |
download | gitlab-ce-4688eb47c6fe135fb9baad5a5d56b1dfa685cc7f.tar.gz |
Rename cron_time_zone to cron_timezone. Separate add_concurrent_foreign_key.
Diffstat (limited to 'app/validators/cron_validator.rb')
-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 cc07011d56b..981fade47a6 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 = Gitlab::Ci::CronParser.new(record.cron, record.cron_time_zone) + cron_parser = Gitlab::Ci::CronParser.new(record.cron, record.cron_timezone) record.errors.add(attribute, " is invalid syntax") unless cron_parser.cron_valid? end end |