Module: CourseUser::AchievementsConcern

Defined in:
app/models/concerns/course_user/achievements_concern.rb

Instance Method Summary collapse

Instance Method Details

#ordered_by_date_obtainedObject

Order achievements based on when each course_user obtained the achievement.


4
5
6
# File 'app/models/concerns/course_user/achievements_concern.rb', line 4

def ordered_by_date_obtained
  order('course_user_achievements.obtained_at DESC')
end