app/models/credit_assignment.rb
# safe retrieval of contract term name
safe retrieval of contract term name
safe retrieval of contract term name
def contract_term_name
    unless self.contract_term_id and self.contract_term
      return 'Unknown term'
    end
    return self.contract_term.name
  end
def contract_term_name unless self . contract_term_id and self . contract_term return 'Unknown term' end return self . contract_term . name end
safe retrieval of contract term name
safe retrieval of contract term name