Class: Ticket

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/ticket.rb

Instance Method Summary collapse

Instance Method Details

#send_email(subject = '') ⇒ Object


12
13
14
15
16
17
18
19
# File 'app/models/ticket.rb', line 12

def send_email(subject='')
  begin
    WebsiteInquiryMailer.inquiry(self, subject).deliver
  rescue Exception => e
    system_user = Party.find_by_description('Compass AE')
    AuditLog.custom_application_log_message(system_user, e)
  end
end