lib/mailkick/engine.rb in mailkick-0.3.0 vs lib/mailkick/engine.rb in mailkick-0.3.1
- old
+ new
@@ -5,10 +5,10 @@
initializer "mailkick" do |app|
Mailkick.discover_services unless Mailkick.services.any?
Mailkick.secret_token ||= begin
creds =
- if app.respond_to?(:credentials)
+ if app.respond_to?(:credentials) && app.credentials.secret_key_base
app.credentials
elsif app.respond_to?(:secrets)
app.secrets
else
app.config