Sha256: 3c14f362aa3ccb0f23d9050fea88a1cc159a1c6ee9eef062f72e5389f0a3051b
Contents?: true
Size: 542 Bytes
Versions: 1
Compression:
Stored size: 542 Bytes
Contents
require 'gridhook' module EmailEvents::Adapters module Sendgrid class Initializer < Abstract::Initializer def self.load_adapter? smtp_settings = Rails.configuration.action_mailer.smtp_settings smtp_settings.present? && smtp_settings[:address].include?('sendgrid') end def self.initialize Gridhook.configure do |config| config.event_receive_path = '/email_events/sendgrid' config.event_processor = EmailEvents::Service::HandleEvent end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
email_events-1.0 | lib/email_events/adapters/sendgrid/initializer.rb |