mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 11:58:27 +00: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.