discourse/plugins/poll/app/models
Sam cdb7094692
FIX: match ActiveRecord#reload signature in overrides (#38639)
The `reload` method overrides in `User`, `ReactionUser`, and
`Poll` did not accept an `options` parameter, diverging from
the `ActiveRecord::Base#reload(options = nil)` signature.

This caused `ArgumentError` when calling `reload(lock: true)`
or passing any other options to these models.

Update all three overrides to accept `options = nil` and add
tests to prevent future regressions.
2026-03-17 09:10:34 +11:00
..
poll.rb FIX: match ActiveRecord#reload signature in overrides (#38639) 2026-03-17 09:10:34 +11:00
poll_option.rb PERF: Preload voters_count and has_voted (#28808) 2024-09-10 18:41:08 +03:00
poll_vote.rb FIX: Poll: ensure it is not possible to vote with all abstentions in Ranked Choice (#29601) 2024-11-26 20:16:22 +08:00