Sha256: b0a1366d6cbf260ca589e69d5a5f125244fc43c6c83e3f04e27f342e32b1c65d

Contents?: true

Size: 474 Bytes

Versions: 5

Compression:

Stored size: 474 Bytes

Contents

# Fix for ruby 1.8.7
require 'active_support/core_ext/kernel/singleton_class'

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
      ActionMailer::Base.add_delivery_method :letter_opener_web, LetterOpenerWeb::DeliveryMethod, :location => Rails.root.join("tmp", "letter_opener")
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
letter_opener_web-1.1.2 lib/letter_opener_web/engine.rb
letter_opener_web-1.1.1 lib/letter_opener_web/engine.rb
letter_opener_web-1.1.0 lib/letter_opener_web/engine.rb
letter_opener_web-1.0.3 lib/letter_opener_web/engine.rb
letter_opener_web-1.0.2 lib/letter_opener_web/engine.rb