Class: Helpdesk::NotificationsMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Helpdesk::NotificationsMailer
- Defined in:
- app/mailers/helpdesk/notifications_mailer.rb
Instance Method Summary collapse
- #comment_by_helpdesk_confirmation(comment) ⇒ Object
- #comment_by_helpdesk_notification(comment) ⇒ Object
- #comment_by_requester_confirmation(comment) ⇒ Object
- #comment_by_requester_notification(comment) ⇒ Object
- #ticket_created_confirmation(ticket) ⇒ Object
- #ticket_created_notification(ticket) ⇒ Object
Instance Method Details
#comment_by_helpdesk_confirmation(comment) ⇒ Object
35 36 37 38 39 |
# File 'app/mailers/helpdesk/notifications_mailer.rb', line 35 def comment_by_helpdesk_confirmation(comment) @comment = comment mail(:subject=>"#{t('helpdesk.name')} | #{comment.ticket.subject}", :to => Helpdesk.email) end |
#comment_by_helpdesk_notification(comment) ⇒ Object
29 30 31 32 33 |
# File 'app/mailers/helpdesk/notifications_mailer.rb', line 29 def comment_by_helpdesk_notification(comment) @comment = comment mail(:subject=>"#{Helpdesk.helpdesk_name} | #{comment.ticket.subject}", :to => comment.ticket.requester.email) end |
#comment_by_requester_confirmation(comment) ⇒ Object
22 23 24 25 26 |
# File 'app/mailers/helpdesk/notifications_mailer.rb', line 22 def comment_by_requester_confirmation(comment) @comment = comment mail(:subject=>"#{Helpdesk.helpdesk_name} | #{comment.ticket.subject}", :to => comment.ticket.requester.email) end |
#comment_by_requester_notification(comment) ⇒ Object
16 17 18 19 20 |
# File 'app/mailers/helpdesk/notifications_mailer.rb', line 16 def comment_by_requester_notification(comment) @comment = comment mail(:subject=>"#{Helpdesk.helpdesk_name} | #{comment.ticket.subject}", :to => Helpdesk.email) end |
#ticket_created_confirmation(ticket) ⇒ Object
9 10 11 12 13 |
# File 'app/mailers/helpdesk/notifications_mailer.rb', line 9 def ticket_created_confirmation(ticket) @ticket = ticket mail(:subject=>"#{Helpdesk.helpdesk_name} | #{ticket.subject}", :to => ticket.requester.email) end |