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

Instance Method Details

#mentee?Boolean

Returns:

  • (Boolean)


110
111
112
# File 'app/models/concerns/effective_mentorships_registration.rb', line 110

def mentee?
  mentorship_role == 'mentee'
end

#mentor?Boolean

Returns:

  • (Boolean)


106
107
108
# File 'app/models/concerns/effective_mentorships_registration.rb', line 106

def mentor?
  mentorship_role == 'mentor'
end

#to_sObject

Instance Methods



102
103
104
# File 'app/models/concerns/effective_mentorships_registration.rb', line 102

def to_s
  title.presence || model_name.human
end