about summary refs log tree commit diff
path: root/app/validators
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-09-13 22:32:19 +0200
committerThibG <thib@sitedethib.com>2019-10-10 20:13:59 +0200
commitb3dd0d276d52042828e11bf325015f5d7f4624ca (patch)
tree6847eb32314144259d4764517c72b49de9302096 /app/validators
parentbc0399d54dde2ad058a8382fc3edbe5506a92985 (diff)
Increase poll option length limit to 100 chars, number of options to 5
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 9d7321cad..8259a62e5 100644
--- a/app/validators/poll_validator.rb
+++ b/app/validators/poll_validator.rb
@@ -1,8 +1,8 @@
 # frozen_string_literal: true
 
 class PollValidator < ActiveModel::Validator
-  MAX_OPTIONS      = 4
-  MAX_OPTION_CHARS = 25
+  MAX_OPTIONS      = 5
+  MAX_OPTION_CHARS = 100
   MAX_EXPIRATION   = 1.month.freeze
   MIN_EXPIRATION   = 5.minutes.freeze