Class: ComplaintsMailer

Inherits:
ApplicationMailer show all
Defined in:
/var/apps/qpixel/app/mailers/complaints_mailer.rb

Instance Method Summary collapse

Instance Method Details

#complaint_reviewedObject



11
12
13
14
15
16
# File '/var/apps/qpixel/app/mailers/complaints_mailer.rb', line 11

def complaint_reviewed
  @complaint = params[:complaint]
  mail(from: "#{SiteSetting['NoReplySenderName']} <#{SiteSetting['NoReplySenderEmail']}>",
       subject: 'Your report has been reviewed',
       to: @complaint.email)
end


18
19
20
21
22
23
24
# File '/var/apps/qpixel/app/mailers/complaints_mailer.rb', line 18

def legal_deletion
  @post = params[:post]
  @complaint = params[:complaint]
  mail(from: "#{SiteSetting['NoReplySenderName']} <#{SiteSetting['NoReplySenderEmail']}>",
       subject: 'Your post has been removed for legal reasons',
       to: @post.user.email)
end

#new_complaintObject



4
5
6
7
8
9
# File '/var/apps/qpixel/app/mailers/complaints_mailer.rb', line 4

def new_complaint
  @complaint = params[:complaint]
  mail(from: "#{SiteSetting['NoReplySenderName']} <#{SiteSetting['NoReplySenderEmail']}>",
       subject: 'Your report has been received',
       to: @complaint.email)
end

#staff_replyObject



26
27
28
29
30
31
32
# File '/var/apps/qpixel/app/mailers/complaints_mailer.rb', line 26

def staff_reply
  @complaint = params[:complaint]
  @comment = params[:comment]
  mail(from: "#{SiteSetting['NoReplySenderName']} <#{SiteSetting['NoReplySenderEmail']}>",
       subject: 'Your report has a reply from a member of staff',
       to: @complaint.email)
end