Sha256: 0a076a4220a47342d20a86f89b9333bc7720c77264a0938399bffb579fcb4d8e
Contents?: true
Size: 569 Bytes
Versions: 16
Compression:
Stored size: 569 Bytes
Contents
module GhostInThePost module Mailer def include_script(*paths) @included_scripts ||= [] @included_scripts += paths end def set_ghost_timeout timeout @ghost_timeout = timeout end def set_ghost_wait_event wait_event @ghost_wait_event = wait_event end 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 end end
Version data entries
16 entries across 16 versions & 1 rubygems