Increase poll option length limit to 100 chars, number of options to 5
This commit is contained in:
1 parent
bc0399d54d
commit
b3dd0d276d
2 files changed
+4
-4
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user