Closed Beornwulf closed 8 years ago
to answer in order:
@user
several times, doing the same thing each timeIn terms of the increment_quizzes
function, I think it could be refactored to get all quiz badges, loop through them and compare self['quizzes_completed']
against badge.required_value
- reduces the duplication and probably complexity, duplication, etc.
@Beornwulf review:
before
blocks (1, 2) are redundant as they're already in auth.rb