diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-26 17:30:16 +0000 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:20 -0500 |
commit | 44d6276b004feaa9e15fb2450d9ce4e98652e66c (patch) | |
tree | 0e84e6a24b8e72957da4119446635c5c9cb19498 /app/validators | |
parent | f81e156c10c5092dae246f1b3b96e0131ebf786c (diff) |
bump poll sizes to 33 options x 202 chars
Diffstat (limited to 'app/validators')
-rw-r--r-- | app/validators/poll_validator.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/validators/poll_validator.rb b/app/validators/poll_validator.rb index 8259a62e5..898c0c67b 100644 --- a/app/validators/poll_validator.rb +++ b/app/validators/poll_validator.rb @@ -1,10 +1,10 @@ # frozen_string_literal: true class PollValidator < ActiveModel::Validator - MAX_OPTIONS = 5 - MAX_OPTION_CHARS = 100 - MAX_EXPIRATION = 1.month.freeze - MIN_EXPIRATION = 5.minutes.freeze + MAX_OPTIONS = 33 + MAX_OPTION_CHARS = 202 + MAX_EXPIRATION = 6.months.freeze + MIN_EXPIRATION = 1.minute.freeze def validate(poll) current_time = Time.now.utc |