Since multi_select_count depends on the type of poll, we can not require its presence via validates_presence_of, but can use the default value. |
||
|---|---|---|
| .. | ||
| poll.rb | ||
| poll_choice.rb | ||
| poll_vote.rb | ||
Since multi_select_count depends on the type of poll, we can not require its presence via validates_presence_of, but can use the default value. |
||
|---|---|---|
| .. | ||
| poll.rb | ||
| poll_choice.rb | ||
| poll_vote.rb | ||