mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-01 20:33:14 +08:00
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. |
||
|---|---|---|
| .. | ||
| controllers/discourse_poll | ||
| models | ||
| serializers | ||