Files
discourse/app/models
Jarek Radosz e950471c0f DEV: Replace User.unstage and User#unstage API with User#unstage! (#8906)
* DEV: Replace User.unstage and User#unstage API with User#unstage!

Quoting @SamSaffron:

> User.unstage mixes concerns of both unstaging users and updating params which is fragile/surprising.
> u.unstage destroys notifications and raises a user_unstaged event prior to the user becoming unstaged and the user object being saved.

User#unstage! no longer updates user attributes and saves the object before triggering the `user_unstaged` event.

* Update one more spec

* Assign attributes after unstaging
2020-03-17 16:48:24 +01:00
..
2019-11-19 10:21:06 +00:00
2019-11-29 15:49:08 +00:00
2020-03-11 12:12:28 -03:00
2019-10-21 12:08:20 +01:00
2020-01-27 15:28:56 +01:00
2019-10-21 12:08:20 +01:00
2019-05-13 15:24:24 +01:00
2019-10-21 12:08:20 +01:00
2019-12-04 13:33:51 -05:00
2020-01-21 19:23:08 +02:00
2019-05-29 14:26:24 +10:00
2019-10-21 12:08:20 +01:00
2020-01-27 15:28:56 +01:00
2020-01-27 15:28:56 +01:00
2019-10-17 16:58:22 +11:00