Redefine #to_hash to make definition consistent with that of user model