module GhostInThePost::Mailer

Public Instance Methods

include_script(*paths) click to toggle source
# File lib/ghost_in_the_post/mailer.rb, line 4
def include_script(*paths)
  @included_scripts ||= []
  @included_scripts += paths
end
mail(*args, &block) click to toggle source
Calls superclass method
# File lib/ghost_in_the_post/mailer.rb, line 17
def mail(*args, &block)
  super.tap do |email|
    email.extend GhostOnCommand
    email.included_scripts = @included_scripts
    email.ghost_timeout = @ghost_timeout
    email.ghost_wait_event = @ghost_wait_event
  end
end
set_ghost_timeout(timeout) click to toggle source
# File lib/ghost_in_the_post/mailer.rb, line 9
def set_ghost_timeout timeout
  @ghost_timeout = timeout
end
set_ghost_wait_event(wait_event) click to toggle source
# File lib/ghost_in_the_post/mailer.rb, line 13
def set_ghost_wait_event wait_event
  @ghost_wait_event = wait_event
end