syntax warnings found in development mode

Change-Id: I95ad530f8a1d30834d25d4df7898e813f231ddcb
Reviewed-on: https://gerrit.instructure.com/2839
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
This commit is contained in:
Brian Whitmer 2011-03-26 21:30:53 -06:00
parent 5a6b048430
commit ae720184c0
2 changed files with 2 additions and 1 deletions

View File

@ -221,6 +221,7 @@ class Enrollment < ActiveRecord::Base
end
def rank_sortable(student_first=false)
type = self.class.to_s
case type
when 'StudentEnrollment'
student_first ? 0 : 4

View File

@ -32,7 +32,7 @@ module Canvas::AccountReports
end
def self.for_account(id)
(AvailableReports.reports['default'] || {}).merge (AvailableReports.reports[id] || {})
(AvailableReports.reports['default'] || {}).merge(AvailableReports.reports[id] || {})
end
def self.generate_report(account_report)