lib/mailkick/engine.rb in mailkick-0.0.6 vs lib/mailkick/engine.rb in mailkick-0.1.0

- old
+ new

@@ -2,10 +2,11 @@ class Engine < ::Rails::Engine isolate_namespace Mailkick initializer "mailkick" do |app| Mailkick.discover_services - Mailkick.secret_token = app.config.respond_to?(:secret_key_base) ? app.config.secret_key_base : app.config.secret_token + secrets = app.respond_to?(:secrets) ? app.secrets : app.config + Mailkick.secret_token = secrets.respond_to?(:secret_key_base) ? secrets.secret_key_base : secrets.secret_token ActiveSupport.on_load :action_mailer do helper Mailkick::UrlHelper end end end