ankane / mailkick

Email subscriptions for Rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Model instance method not using email_key

atitan opened this issue Β· comments

The email_key passed into mailkick_user is not used for the following methods.

Please kindly fix it. πŸ™

# mailkick/lib/mailkick/model.rb

def opted_out?(options = {})
  Mailkick.opted_out?({email: email, user: self}.merge(options))
end

def opt_out(options = {})
  Mailkick.opt_out({email: email, user: self}.merge(options))
end

def opt_in(options = {})
  Mailkick.opt_in({email: email, user: self}.merge(options))
end

Thanks for reporting πŸ‘ Fixed on master.