Module: EffectiveMentorshipsGroup
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/effective_mentorships_group.rb
Overview
EffectiveMentorshipsGroup
Mark your group model with effective_mentorships_group to get all the includes
Defined Under Namespace
Modules: Base, ClassMethods
Instance Method Summary collapse
- #mentorship_group_user(user:) ⇒ Object
-
#to_s ⇒ Object
Instance Methods.
Instance Method Details
#mentorship_group_user(user:) ⇒ Object
55 56 57 |
# File 'app/models/concerns/effective_mentorships_group.rb', line 55 def mentorship_group_user(user:) mentorship_group_users.find { |mgu| mgu.user == user } end |
#to_s ⇒ Object
Instance Methods
51 52 53 |
# File 'app/models/concerns/effective_mentorships_group.rb', line 51 def to_s model_name.human end |