Sha256: 0dfb12251593974f6f34179bb72cc71dcc26c7de796e614b157308921783f48f

Contents?: true

Size: 390 Bytes

Versions: 1

Compression:

Stored size: 390 Bytes

Contents

module GhostInThePost
  module Automatic
    attr_accessor :included_scripts

    def include_script(*paths)
      @included_scripts ||= []
      @included_scripts += paths
    end

    def mail(*args, &block)
      super.tap do |email|
        email.extend GhostOnCommand
        email.extend GhostOnDelivery
        email.included_scripts = @included_scripts
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ghost_in_the_post-0.0.1 lib/ghost_in_the_post/automatic.rb