app/models/teammate_review_response_map.rb
# Send Teammate Review Emails
# Refactored from email method in response.rb
Send Teammate Review Emails
Refactored from email method in response.rb
Send Teammate Review Emails Refactored from email method in response . rb
def email(defn, participant, assignment)
    defn[:body][:type] = "Teammate Review"
    participant = AssignmentParticipant.find(reviewee_id)
    topic_id = SignedUpTeam.topic_id(participant.parent_id, participant.user_id)
    defn[:body][:obj_name] = assignment.name
    user = User.find(participant.user_id)
    defn[:body][:first_name] = user.fullname
    defn[:to] = user.email
    Mailer.sync_message(defn).deliver
  end
def email ( defn , participant , assignment ) defn [ :body ] [ :type ] = "Teammate Review" participant = AssignmentParticipant . find ( reviewee_id ) topic_id = SignedUpTeam . topic_id ( participant . parent_id , participant . user_id ) defn [ :body ] [ :obj_name ] = assignment . name user = User . find ( participant . user_id ) defn [ :body ] [ :first_name ] = user . fullname defn [ :to ] = user . email Mailer . sync_message ( defn ) . deliver end
Send Teammate Review Emails
Refactored from email method in response.rb
Send Teammate Review Emails Refactored from email method in response . rb
defn
participant
assignment