Module: EffectiveMentorshipsRegistration
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/effective_mentorships_registration.rb
Overview
EffectiveMentorshipsRegistration
Mark your group model with effective_mentorships_registration to get all the includes
Defined Under Namespace
Modules: Base, ClassMethods
Instance Method Summary collapse
- #mentee? ⇒ Boolean
- #mentor? ⇒ Boolean
-
#to_s ⇒ Object
Instance Methods.
Instance Method Details
#mentee? ⇒ Boolean
109 110 111 |
# File 'app/models/concerns/effective_mentorships_registration.rb', line 109 def mentee? mentorship_role == 'mentee' end |
#mentor? ⇒ Boolean
105 106 107 |
# File 'app/models/concerns/effective_mentorships_registration.rb', line 105 def mentor? mentorship_role == 'mentor' end |
#to_s ⇒ Object
Instance Methods
101 102 103 |
# File 'app/models/concerns/effective_mentorships_registration.rb', line 101 def to_s title.presence || model_name.human end |