Sha256: b4ed7a8716a07d21cff6a4b4b56ac9c127765ba23849dc620aed842cf0a27a2c

Contents?: true

Size: 520 Bytes

Versions: 8

Compression:

Stored size: 520 Bytes

Contents

# frozen_string_literal: true

module Roadie
  module Rails
    module Mailer
      # Generate an email and run Roadie on it. Will use #roadie_options to get
      # default options if not passed in.
      def roadie_mail(
        options = {},
        final_roadie_options = roadie_options,
        &block
      )
        email = mail(options, &block)
        MailInliner.new(email, final_roadie_options).execute
      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/mailer.rb
roadie-rails-3.1.0 lib/roadie/rails/mailer.rb
roadie-rails-3.0.0 lib/roadie/rails/mailer.rb
roadie-rails-2.3.0 lib/roadie/rails/mailer.rb
roadie-rails-2.2.0 lib/roadie/rails/mailer.rb
roadie-rails-2.1.1 lib/roadie/rails/mailer.rb
roadie-rails-2.1.0 lib/roadie/rails/mailer.rb
roadie-rails-2.0.0 lib/roadie/rails/mailer.rb