about summary refs log tree commit diff
path: root/app/validators
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-04-18 17:27:47 -0500
committermultiple creatures <dev@multiple-creature.party>2019-05-21 03:16:22 -0500
commit1fe28ca9d6555ac03bfd8f6bf22cdad46fdf8ff0 (patch)
tree202128f4e73d0cd7905a0953217d782ef134e0c2 /app/validators
parentfb47b6e120b735a6fb1e9358cc2856072b1bd295 (diff)
Extend limits for poll time range to between a minute and 6 months.
Diffstat (limited to 'app/validators')
-rw-r--r--app/validators/poll_validator.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/validators/poll_validator.rb b/app/validators/poll_validator.rb
index 9efe5d567..10e0b8413 100644
--- a/app/validators/poll_validator.rb
+++ b/app/validators/poll_validator.rb
@@ -3,8 +3,8 @@
 class PollValidator < ActiveModel::Validator
   MAX_OPTIONS      = 6
   MAX_OPTION_CHARS = 111
-  MAX_EXPIRATION   = 1.month.freeze
-  MIN_EXPIRATION   = 5.minutes.freeze
+  MAX_EXPIRATION   = 6.months.freeze
+  MIN_EXPIRATION   = 1.minute.freeze
 
   def validate(poll)
     current_time = Time.now.utc