Sha256: 6f2dfd30f6a9cd0f36eaf8a294aa45d0a5b2f876167dd64567782ab3d3a0094b

Contents?: true

Size: 356 Bytes

Versions: 8

Compression:

Stored size: 356 Bytes

Contents

# frozen_string_literal: true

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
roadie-rails-3.3.0 lib/roadie/rails/automatic.rb
roadie-rails-3.1.0 lib/roadie/rails/automatic.rb
roadie-rails-3.0.0 lib/roadie/rails/automatic.rb
roadie-rails-2.3.0 lib/roadie/rails/automatic.rb
roadie-rails-2.2.0 lib/roadie/rails/automatic.rb
roadie-rails-2.1.1 lib/roadie/rails/automatic.rb
roadie-rails-2.1.0 lib/roadie/rails/automatic.rb
roadie-rails-2.0.0 lib/roadie/rails/automatic.rb