Sha256: e9c28ee07a81991225039b56c478987136d2fbf29a3a15255edd53d5835a1ead
Contents?: true
Size: 634 Bytes
Versions: 1
Compression:
Stored size: 634 Bytes
Contents
module Mailkick class Engine < ::Rails::Engine isolate_namespace Mailkick initializer "mailkick" do |app| Mailkick.discover_services unless Mailkick.services.any? Mailkick.secret_token ||= begin creds = if app.respond_to?(:credentials) app.credentials elsif app.respond_to?(:secrets) app.secrets else app.config end creds.respond_to?(:secret_key_base) ? creds.secret_key_base : creds.secret_token end ActiveSupport.on_load :action_mailer do helper Mailkick::UrlHelper end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mailkick-0.3.0 | lib/mailkick/engine.rb |