Seems like a blank UserStats record should get created on account creation: It's also necessary for the show user page, which a new user might try to access (before the cron that would otherwise create a missing UserStats object has run). This should solve the issue in #2078
Also fixes the redirect in UsersController#show, for a nonexistent user, #2080
coverage: 94.401%. remained the same
when pulling 1ce8e3ae4e982d6dd9d2362a8ff45145d886c8ef on nimmo-create-userstats-on-create-user
into dfa9ac66dac2e48134d911e0b50aae281c73cdb0 on main.
Seems like a blank
UserStats
record should get created on account creation: It's also necessary for the show user page, which a new user might try to access (before the cron that would otherwise create a missing UserStats object has run). This should solve the issue in #2078Also fixes the redirect in UsersController#show, for a nonexistent user, #2080
Adds three tests.