lib/mailkick.rb in mailkick-0.1.4 vs lib/mailkick.rb in mailkick-0.1.5

- old
+ new

@@ -7,14 +7,16 @@ require "mailkick/service/mailchimp" require "mailkick/service/mandrill" require "mailkick/service/sendgrid" require "mailkick/service/mailgun" require "set" +require "safely/core" module Mailkick - mattr_accessor :services, :user_method, :secret_token + mattr_accessor :services, :user_method, :secret_token, :mount self.services = [] self.user_method = proc { |email| User.where(email: email).first rescue nil } + self.mount = true def self.fetch_opt_outs services.each(&:fetch_opt_outs) end