lib/ahoy_email/engine.rb in ahoy_email-0.2.2 vs lib/ahoy_email/engine.rb in ahoy_email-0.2.3

- old
+ new

@@ -1,10 +1,8 @@ module AhoyEmail class Engine < ::Rails::Engine - initializer "ahoy_email" do |app| secrets = app.respond_to?(:secrets) ? app.secrets : app.config - AhoyEmail.secret_token = secrets.respond_to?(:secret_key_base) ? secrets.secret_key_base : secrets.secret_token + AhoyEmail.secret_token ||= secrets.respond_to?(:secret_key_base) ? secrets.secret_key_base : secrets.secret_token end - end end