change symbol array syntax for ruby 1.9

Change-Id: I5ca2eb4e8d12aa91413cd4214f3fb91e60c72265
Reviewed-on: https://gerrit.instructure.com/49765
Reviewed-by: Benjamin Porter <bporter@instructure.com>
Tested-by: Jenkins
Product-Review: Mike Nomitch <mnomitch@instructure.com>
QA-Review: Mike Nomitch <mnomitch@instructure.com>
This commit is contained in:
Michael Nomitch 2015-03-03 09:38:20 -06:00 committed by Mike Nomitch
parent dc197b150c
commit 8a59a3769d
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
class SortsAssignments class SortsAssignments
VALID_BUCKETS = %i(past overdue undated ungraded upcoming future) VALID_BUCKETS = [:past, :overdue, :undated, :ungraded, :upcoming, :future]
AssignmentsSortedByDueDate = Struct.new(*VALID_BUCKETS) AssignmentsSortedByDueDate = Struct.new(*VALID_BUCKETS)
def self.by_due_date(opts) def self.by_due_date(opts)