Sha256: ab5bce78e19ff0405018a176e745fce00fd5dcff59abb0d0ac83af7991ec243c
Contents?: true
Size: 577 Bytes
Versions: 4
Compression:
Stored size: 577 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 end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mailkick-1.0.1 | lib/mailkick/engine.rb |
mailkick-1.0.0 | lib/mailkick/engine.rb |
mailkick-0.4.3 | lib/mailkick/engine.rb |
mailkick-0.4.2 | lib/mailkick/engine.rb |