ActionMailer::Previews::ClassMethods

module ActionMailer::Previews::ClassMethods

Public Instance Methods

register_preview_interceptor(interceptor) Show source

Register an Interceptor which will be called before mail is previewed. Either a class or a string can be passed in as the Interceptor. If a string is passed in it will be constantized.

# File actionmailer/lib/action_mailer/preview.rb, line 28
def register_p