Sha256: 7294e770a203e9b3059fda4a3bad2b092d92b74052ab9ad02a248d2781f4a866

Contents?: true

Size: 811 Bytes

Versions: 4

Compression:

Stored size: 811 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

    initializer "assets" do |app|
      Rails.application.config.assets.precompile += %w(
        letter_opener_web/application.js
        letter_opener_web/application.css
        letter_opener_web/glyphicons-halflings.png
        letter_opener_web/glyphicons-halflings-white.png
        letter_opener_web/blue-dot.ico
      )
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
letter_opener_web-1.3.1 lib/letter_opener_web/engine.rb
letter_opener_web-1.3.0 lib/letter_opener_web/engine.rb
letter_opener_web-1.2.3 lib/letter_opener_web/engine.rb
letter_opener_web-1.2.2 lib/letter_opener_web/engine.rb