I'm not convinced about having these two methods (`rank` and `rank_in_group`) belonging to the User class.
I think they will fit better in the UserScore and the Group classes, respectively. Something like `UserScore#rank_for(:user_id)` and `Group#rank_for(:user_id)`
What do you think?