Class: FederalOffense::Interceptor

Inherits:
Object
  • Object
show all
Defined in:
lib/federal_offense/interceptor.rb

Class Method Summary collapse

Class Method Details

.delivering_email(message) ⇒ Object



5
6
7
8
# File 'lib/federal_offense/interceptor.rb', line 5

def self.delivering_email(message)
  FederalOffense::Message.create(message)
  FederalOffense::ActionCable.broadcast! if FederalOffense.action_cable
end