Browse Source

Widen allowed time windows for polls (#10162)

pull/4/head
ThibG 5 years ago
committed by Eugen Rochko
parent
commit
f2a1b8b96b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/validators/poll_validator.rb

+ 2
- 2
app/validators/poll_validator.rb View File

@ -3,8 +3,8 @@
class PollValidator < ActiveModel::Validator
MAX_OPTIONS = 4
MAX_OPTION_CHARS = 25
MAX_EXPIRATION = 7.days.freeze
MIN_EXPIRATION = 1.day.freeze
MAX_EXPIRATION = 1.month.freeze
MIN_EXPIRATION = 5.minutes.freeze
def validate(poll)
current_time = Time.now.utc

Loading…
Cancel
Save