Sha256: 9a154f4fa41e7650b67d2fc6887f3375697d0a38b0374161afe09fdd96e42d59
Contents?: true
Size: 603 Bytes
Versions: 2
Compression:
Stored size: 603 Bytes
Contents
class CommunicationEventObserver < ActiveRecord::Observer def after_commit_on_create(comm_event) Rails.logger.debug "CommunicationEventObserver - calling after_commit_on_create: outside transaction - #{comm_event.connection.outside_transaction?}" unless comm_event.comm_evt_purpose_types.first.description.include?("Change Request") begin CommunicationEventMailer.contact_notification(comm_event).deliver rescue => ex system_user = Party.find_by_description('Compass AE') AuditLog.custom_application_log_message(system_user, ex) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
erp_communication_events-4.2.0 | app/observers/communication_event_observer.rb |
erp_communication_events-4.0.0 | app/observers/communication_event_observer.rb |