Skip to content

Commit

Permalink
アンケートの回答を10個に増やす
Browse files Browse the repository at this point in the history
  • Loading branch information
karasugawasu committed May 5, 2019
1 parent 15cfaaa commit 61bcf5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class PollForm extends ImmutablePureComponent {
</ul>

<div className='poll__footer'>
{options.size < 4 && (
{options.size < 10 && (
<button className='button button-secondary' onClick={this.handleAddOption}><Icon id='plus' /> <FormattedMessage {...messages.add_option} /></button>
)}

Expand Down
2 changes: 1 addition & 1 deletion app/validators/poll_validator.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

class PollValidator < ActiveModel::Validator
MAX_OPTIONS = 4
MAX_OPTIONS = 10
MAX_OPTION_CHARS = 25
MAX_EXPIRATION = 1.month.freeze
MIN_EXPIRATION = 5.minutes.freeze
Expand Down

0 comments on commit 61bcf5e

Please sign in to comment.