discourse/plugins/poll/spec/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_spec.rb FIX: match ActiveRecord#reload signature in overrides (#38639) 2026-03-17 09:10:34 +11:00