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)


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

def mentee?
  mentorship_role == 'mentee'
end

#mentor?Boolean

Returns:

  • (Boolean)


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

def mentor?
  mentorship_role == 'mentor'
end

#to_sObject

Instance Methods



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

def to_s
  title.presence || model_name.human
end