Skip to content

Commit

Permalink
Increase poll options to 15 and character length to 150
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Sparrow <[email protected]>
  • Loading branch information
DismalShadowX authored May 8, 2024
1 parent 56c2f2b commit 0095ef9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/validators/poll_validator.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# frozen_string_literal: true

class PollValidator < ActiveModel::Validator
MAX_OPTIONS = 4
MAX_OPTION_CHARS = 50
MAX_OPTIONS = 15
MAX_OPTION_CHARS = 150
MAX_EXPIRATION = 1.month.freeze
MIN_EXPIRATION = 5.minutes.freeze

Expand Down

0 comments on commit 0095ef9

Please sign in to comment.