molten-trunk/molten5_withgrid/app/models/sfccomment.rb
def send_email_to_owner
    return if !self.support_case or self.support_case.contact == self.created_by
    if AppSetting.config('Send Comment Notifications') == AppSetting::SEND_COMMENT_NOTIFICATIONS[:send_notification]
      SfcontactMailer.deliver_owner_notification(self)
    end
  rescue
    logger.info("Error occured creating case comment notification email: #{$!.message}")
  end
# Sends an email to the +Sfcase+ contact as long as the comment creator isn't also the 
# +Sfcase#contact. AppSetting.config('Send Comment Notifications') must be set to 
# AppSetting::SEND_COMMENT_NOTIFICATIONS[:send_notification] as well.
Sends an email to the +Sfcase+ contact as long as the comment creator isn't also the
+Sfcase#contact.
Sends an email to the + Sfcase + contact as long as the comment creator isn ' t also the + Sfcase#contact .
def send_email_to_owner
    return if !self.support_case or self.support_case.contact == self.created_by
    if AppSetting.config('Send Comment Notifications') == AppSetting::SEND_COMMENT_NOTIFICATIONS[:send_notification]
      SfcontactMailer.deliver_owner_notification(self)
    end
  rescue
    logger.info("Error occured creating case comment notification email: #{$!.message}")
  end
def send_email_to_owner return if ! self . support_case or self . support_case . contact == self . created_by if AppSetting . config ( 'Send Comment Notifications' ) == AppSetting :: SEND_COMMENT_NOTIFICATIONS [ :send_notification ] SfcontactMailer . deliver_owner_notification ( self ) end rescue logger . info ( "Error occured creating case comment notification email: #{$!.message}" ) end
Sends an email to the +Sfcase+ contact as long as the comment creator isn't also the
+Sfcase#contact.
Sends an email to the + Sfcase + contact as long as the comment creator isn ' t also the + Sfcase#contact .