Sha256: c67f5efc9ea222e80d78bd4c258afbc014936504b1538959966c23170dbd7774

Contents?: true

Size: 325 Bytes

Versions: 12

Compression:

Stored size: 325 Bytes

Contents

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

12 entries across 12 versions & 1 rubygems

Version Path
roadie-rails-1.3.0 lib/roadie/rails/automatic.rb
roadie-rails-1.2.1 lib/roadie/rails/automatic.rb
roadie-rails-1.2.0 lib/roadie/rails/automatic.rb
roadie-rails-1.1.1 lib/roadie/rails/automatic.rb
roadie-rails-1.1.0 lib/roadie/rails/automatic.rb
roadie-rails-1.1.0.rc2 lib/roadie/rails/automatic.rb
roadie-rails-1.1.0.rc1 lib/roadie/rails/automatic.rb
roadie-rails-1.0.6 lib/roadie/rails/automatic.rb
roadie-rails-1.0.5 lib/roadie/rails/automatic.rb
roadie-rails-1.0.4 lib/roadie/rails/automatic.rb
roadie-rails-1.0.3 lib/roadie/rails/automatic.rb
roadie-rails-1.0.2 lib/roadie/rails/automatic.rb