Sha256: 74adf7ac425663e01dc0ea89c8d922ed8a74ca81cc32f421c306396a2e51edaa

Contents?: true

Size: 480 Bytes

Versions: 1

Compression:

Stored size: 480 Bytes

Contents

module GhostInThePost
  module Mailer
    attr_accessor :included_scripts, :ghost_timeout, :ghost_wait_event

    def include_script(*paths)
      @included_scripts ||= []
      @included_scripts += paths
    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

1 entries across 1 versions & 1 rubygems

Version Path
ghost_in_the_post-0.0.2 lib/ghost_in_the_post/mailer.rb