Class: Sorting::GuideProgress::ByLastSubmissionDate

Inherits:
SortBy
  • Object
show all
Defined in:
lib/mumuki/classroom/models/sorting/guide_progress.rb

Class Method Summary collapse

Methods inherited from SortBy

pipeline

Class Method Details

.order_by(ordering) ⇒ Object



140
141
142
143
144
# File 'lib/mumuki/classroom/models/sorting/guide_progress.rb', line 140

def self.order_by(ordering)
  {'last_assignment.submission.created_at': !ordering,
   'last_name': ordering,
   'first_name': ordering}
end