]> git.openstreetmap.org Git - rails.git/commitdiff
Use a state machine for user status
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 5 Jan 2022 18:44:46 +0000 (18:44 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 12 Jan 2022 18:16:14 +0000 (18:16 +0000)
The user status is a bit complex, since there are various states and
not all transitions between them make sense.

Using AASM means that we can name and restrict the transitions, which
hopefully makes them easier to reason about.


No differences found