Sha256: 99b6c8e57869ef3a993a94f2c7042905fd6a9cf2b5221e2b125e10cf311db4a0

Contents?: true

Size: 319 Bytes

Versions: 3

Compression:

Stored size: 319 Bytes

Contents

module Roadie
  module Rails
    module Automatic
      def mail(*args, &block)
        super.tap do |email|
          email.extend InlineOnDelivery
          email.roadie_options = roadie_options.dup
        end
      end

      def roadie_options
        ::Rails.application.config.roadie
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
roadie-rails-1.0.1 lib/roadie/rails/automatic.rb
roadie-rails-1.0.0 lib/roadie/rails/automatic.rb
roadie-rails-1.0.0.pre1 lib/roadie/rails/automatic.rb