Sha256: 5831110eadb7a64a1ed4d8bdeae4b2cceb79e5189661e1f84b08b2175711741e

Contents?: true

Size: 447 Bytes

Versions: 4

Compression:

Stored size: 447 Bytes

Contents

module Mailkick
  class Engine < ::Rails::Engine
    isolate_namespace Mailkick

    initializer "mailkick" do |app|
      Mailkick.discover_services
      secrets = app.respond_to?(:secrets) ? app.secrets : app.config
      Mailkick.secret_token ||= secrets.respond_to?(:secret_key_base) ? secrets.secret_key_base : secrets.secret_token
      ActiveSupport.on_load :action_mailer do
        helper Mailkick::UrlHelper
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mailkick-0.1.4 lib/mailkick/engine.rb
mailkick-0.1.3 lib/mailkick/engine.rb
mailkick-0.1.2 lib/mailkick/engine.rb
mailkick-0.1.1 lib/mailkick/engine.rb