Class: Effective::MentorshipGroupUser
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Effective::MentorshipGroupUser
- Defined in:
- app/models/effective/mentorship_group_user.rb
Constant Summary collapse
- MENTORSHIP_ROLES =
['mentor', 'mentee']
Instance Method Summary collapse
Instance Method Details
#mentee? ⇒ Boolean
59 60 61 |
# File 'app/models/effective/mentorship_group_user.rb', line 59 def mentee? mentorship_role.to_s == 'mentee' end |
#mentor? ⇒ Boolean
55 56 57 |
# File 'app/models/effective/mentorship_group_user.rb', line 55 def mentor? mentorship_role.to_s == 'mentor' end |
#to_s ⇒ Object
51 52 53 |
# File 'app/models/effective/mentorship_group_user.rb', line 51 def to_s user.to_s.presence || model_name.human end |