Commit graph

7 commits

Author SHA1 Message Date
Patrick Gansterer
44a198c7bc Adopt Rails 5 belongs_to_required_by_default 2020-09-05 14:40:11 +02:00
Patrick Gansterer
266e9337be Various small rails 5 adoptions 2020-09-04 12:54:42 +02:00
Patrick Gansterer
aa44291b69 Handle more possible inputs for polls correct 2020-08-13 17:20:49 +02:00
Patrick Gansterer
67ab647eb0 Remove number_display.rb 2020-08-03 15:31:34 +02:00
Patrick Gansterer
6b400b4f96 Increase choices size for polls
MariaDB/MySQL stores the array as serialized string, so the current
limit of 255 is too small to store all choices.
2020-07-31 21:43:56 +02:00
Patrick Gansterer
d75b881318 Set Poll.multi_select_count to default value in model if nil
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.
2020-07-29 09:14:30 +02:00
Patrick Gansterer
d476993321 Add polls plugin 2020-02-24 14:27:22 +01:00