ankane / ahoy_email

First-party email analytics for Rails
MIT License
1.11k stars 137 forks source link

Undefined method user= when not tracking users #119

Closed creativetags closed 5 years ago

creativetags commented 5 years ago

I'm trying to get it to work without tracking users but it's giving me the error undefined method 'user=' for #<EmailMessage:0x007ff13427b488> when I try to send an email. I've already changed my message_model to my custom one EmailMessage which is why it's looking there.

I've tried setting track user: nil or track user: -> { nil } on the Mailer but that didn't make a difference.

I'm on master branch as of today.

ankane commented 5 years ago

Hey @creativetags, thanks for reporting 👍 Fixed on master.