lib/ahoy_email/engine.rb in ahoy_email-1.0.3 vs lib/ahoy_email/engine.rb in ahoy_email-1.1.0
- old
+ new
@@ -11,10 +11,12 @@
app.secrets
else
app.config
end
- creds.respond_to?(:secret_key_base) ? creds.secret_key_base : creds.secret_token
+ token = creds.respond_to?(:secret_key_base) ? creds.secret_key_base : creds.secret_token
+ token ||= app.secret_key_base # should come first, but need to maintain backward compatibility
+ token
end
end
end
end