lib/email_events/mailer.rb
# whether or not to track the email and handle events for the email
whether or not to track the email and handle events for the email
whether or not to track the email and handle events for the email
def __handle_event(event_data, email_data)
          return if event_handler.nil?
          if event_handler.is_a? Symbol
            self.send event_handler, event_data, email_data
          else
            event_handler.call event_data, email_data
          end
        end
def __handle_event ( event_data , email_data ) return if event_handler . nil? if event_handler . is_a? Symbol self . send event_handler , event_data , email_data else event_handler . call event_data , email_data end end
whether or not to track the email and handle events for the email
whether or not to track the email and handle events for the email
event_data
email_data