Class: CourseNumber

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/course_number.rb

Instance Method Summary collapse

Instance Method Details

#display_nameObject


3
4
5
6
# File 'app/models/course_number.rb', line 3

def display_name
  return self.name if self.short_name.blank?
  return self.name + " (" + self.short_name + ")"
end