Class: Effective::CourseRegistrant

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

Instance Method Summary collapse

Instance Method Details

#titleObject



48
49
50
# File 'app/models/effective/course_registrant.rb', line 48

def title
  "#{learndash_course} - #{owner}"
end

#to_sObject



44
45
46
# File 'app/models/effective/course_registrant.rb', line 44

def to_s
  persisted? ? title : 'course purchase'
end