app/models/applications/application_mentor.rb
# Generates the text of the mentor letter to be sent to the mentor. If a customized award letter text has been written to the
# database, then we return that. Otherwise, we generate the text by parsing the template defined with 
# Offering#mentor_award_letter_template_id.
Generates the text of the mentor letter to be sent to the mentor. If a customized award letter text has been written to the
database, then we return that. Otherwise, we generate the text by parsing the template defined with
Offering#mentor_award_letter_template_id.
Generates the text of the mentor letter to be sent to the mentor . If a customized award letter text has been written to the database then we return that . Otherwise we generate the text by parsing the template defined with Offering#mentor_award_letter_template_id .
def mentor_letter_text
    return read_attribute(:mentor_letter_text) unless read_attribute(:mentor_letter_text).blank?
    template = offering.mentor_award_letter_template
    template.parse(self) if template
  end
def mentor_letter_text return read_attribute ( :mentor_letter_text ) unless read_attribute ( :mentor_letter_text ) . blank? template = offering . mentor_award_letter_template template . parse ( self ) if template end
Generates the text of the mentor letter to be sent to the mentor.
Generates the text of the mentor letter to be sent to the mentor .