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
- #send_activate_subscription(subscriber) ⇒ Object
- #ticket_created_confirmation(ticket) ⇒ Object
- #ticket_created_notification(ticket) ⇒ Object
Instance Method Details
permalink #comment_by_helpdesk_confirmation(comment) ⇒ Object
[View source]
36 37 38 39 40 |
# File 'app/mailers/helpdesk/notifications_mailer.rb', line 36 def comment_by_helpdesk_confirmation(comment) @comment = comment mail(:subject=>"#{t('helpdesk.name')} | #{comment.ticket.subject}", :to => Helpdesk.email) end |
permalink #comment_by_helpdesk_notification(comment) ⇒ Object
[View source]
30 31 32 33 34 |
# File 'app/mailers/helpdesk/notifications_mailer.rb', line 30 def comment_by_helpdesk_notification(comment) @comment = comment mail(:subject=>"#{Helpdesk.helpdesk_name} | #{comment.ticket.subject}", :to => comment.ticket.requester.email) end |
permalink #comment_by_requester_confirmation(comment) ⇒ Object
[View source]
23 24 25 26 27 |
# File 'app/mailers/helpdesk/notifications_mailer.rb', line 23 def comment_by_requester_confirmation(comment) @comment = comment mail(:subject=>"#{Helpdesk.helpdesk_name} | #{comment.ticket.subject}", :to => comment.ticket.requester.email) end |
permalink #comment_by_requester_notification(comment) ⇒ Object
[View source]
17 18 19 20 21 |
# File 'app/mailers/helpdesk/notifications_mailer.rb', line 17 def comment_by_requester_notification(comment) @comment = comment mail(:subject=>"#{Helpdesk.helpdesk_name} | #{comment.ticket.subject}", :to => Helpdesk.email) end |
permalink #send_activate_subscription(subscriber) ⇒ Object
[View source]
42 43 44 45 46 |
# File 'app/mailers/helpdesk/notifications_mailer.rb', line 42 def send_activate_subscription(subscriber) @subscriber = subscriber mail(:subject=>"#{t('helpdesk.name')}: Please Confirm Subscription", :to => @subscriber.email) end |
permalink #ticket_created_confirmation(ticket) ⇒ Object
[View source]
11 12 13 14 15 |
# File 'app/mailers/helpdesk/notifications_mailer.rb', line 11 def ticket_created_confirmation(ticket) @ticket = ticket mail(:subject=>"#{Helpdesk.helpdesk_name} | #{ticket.subject}", :to => ticket.requester.email) end |
permalink #ticket_created_notification(ticket) ⇒ Object
[View source]
5 6 7 8 9 |
# File 'app/mailers/helpdesk/notifications_mailer.rb', line 5 def ticket_created_notification(ticket) @ticket = ticket mail(:subject=>"#{Helpdesk.helpdesk_name} | #{ticket.subject}", :to => Helpdesk.email) end |