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

Version Path
ghost_in_the_post-0.1.4 lib/ghost_in_the_post/mailer.rb
ghost_in_the_post-0.1.3 lib/ghost_in_the_post/mailer.rb
ghost_in_the_post-0.1.2 lib/ghost_in_the_post/mailer.rb
ghost_in_the_post-0.1.0 lib/ghost_in_the_post/mailer.rb
ghost_in_the_post-0.0.14 lib/ghost_in_the_post/mailer.rb
ghost_in_the_post-0.0.13 lib/ghost_in_the_post/mailer.rb
ghost_in_the_post-0.0.12 lib/ghost_in_the_post/mailer.rb
ghost_in_the_post-0.0.11 lib/ghost_in_the_post/mailer.rb
ghost_in_the_post-0.0.10 lib/ghost_in_the_post/mailer.rb
ghost_in_the_post-0.0.9 lib/ghost_in_the_post/mailer.rb
ghost_in_the_post-0.0.8 lib/ghost_in_the_post/mailer.rb
ghost_in_the_post-0.0.7 lib/ghost_in_the_post/mailer.rb
ghost_in_the_post-0.0.6 lib/ghost_in_the_post/mailer.rb
ghost_in_the_post-0.0.5 lib/ghost_in_the_post/mailer.rb
ghost_in_the_post-0.0.4 lib/ghost_in_the_post/mailer.rb
ghost_in_the_post-0.0.3 lib/ghost_in_the_post/mailer.rb