mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 12:35:21 +08:00

`reject` method for `Reviewable` model is returning an array. So if we use `this.set` method to update `reviewables` attribute in controller then it replaces the model with an array of objects wrongly. This is now fixed by using the `setObjects` method of the model.