Sha256: a1ae90275f4cdef9b40a08b7f7d48b702a7389faafb4397d31d843eefce6e325

Contents?: true

Size: 519 Bytes

Versions: 6

Compression:

Stored size: 519 Bytes

Contents

# frozen_string_literal: true

require 'letter_opener'
require 'letter_opener_web/delivery_method'

module LetterOpenerWeb
  class Engine < ::Rails::Engine
    isolate_namespace LetterOpenerWeb

    initializer 'letter_opener_web.add_delivery_method' do
      ActiveSupport.on_load :action_mailer do
        ActionMailer::Base.add_delivery_method(
          :letter_opener_web,
          LetterOpenerWeb::DeliveryMethod,
          location: LetterOpenerWeb.config.letters_location
        )
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
letter_opener_web_wally-2.0.1 lib/letter_opener_web/engine.rb
letter_opener_web-2.0.0 lib/letter_opener_web/engine.rb
letter_opener_web-2.0.0.pre.beta lib/letter_opener_web/engine.rb
letter_opener_web-2.0.0.pre.alpha1 lib/letter_opener_web/engine.rb
letter_opener_web-1.4.1 lib/letter_opener_web/engine.rb
letter_opener_web-1.4.0 lib/letter_opener_web/engine.rb