module SendGridMailer::InterceptorsHandler
Public Instance Methods
execute_interceptors(sg_definition)
click to toggle source
# File lib/send_grid_mailer/interceptors_handler.rb, line 3 def execute_interceptors(sg_definition) registered_interceptors.each do |interceptor| interceptor_class = "SendGridMailer::Interceptor::#{interceptor.class}".constantize interceptor_class.perform(sg_definition, interceptor) end end
registered_interceptors()
click to toggle source
# File lib/send_grid_mailer/interceptors_handler.rb, line 10 def registered_interceptors ::Mail.class_variable_get(:@@delivery_interceptors) end