Model instance method not using email_key
atitan opened this issue Β· comments
Sh Lin commented
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
Andrew Kane commented
Thanks for reporting π Fixed on master.