Module: EmailHelper
- Defined in:
- app/helpers/email_helper.rb
Instance Method Summary collapse
- #assignment_help_email_body(assignment) ⇒ Object
- #permissions_help_email_body(user, organization) ⇒ Object
Instance Method Details
#assignment_help_email_body(assignment) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'app/helpers/email_helper.rb', line 2 def assignment_help_email_body(assignment) "\#{t :exercise}: \#{assignment.exercise.name}\n\n\#{t :solution}:\n\#{assignment.solution}\n\n\#{t :status}: \#{assignment.status}\n\nSee \#{transparent_exercise_url(assignment.exercise.transparent_params)}\n" end |
#permissions_help_email_body(user, organization) ⇒ Object
15 16 17 18 19 |
# File 'app/helpers/email_helper.rb', line 15 def (user, organization) "\#{t :want_permissions} \#{organization.name}: \#{user.try(:uid)} - \#{user.try(:email)}\n" end |