Sha256: 0c6877d88fcf60f06952365be3a2d35ce48b679be145e747cb1e25128b90e93f
Contents?: true
Size: 669 Bytes
Versions: 3
Compression:
Stored size: 669 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.secret_key_base 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mailkick-0.4.1 | lib/mailkick/engine.rb |
mailkick-0.4.0 | lib/mailkick/engine.rb |
mailkick-0.3.1 | lib/mailkick/engine.rb |