intercom / intercom-rails

The easiest way to install Intercom in a Rails app.
https://developers.intercom.io/reference
MIT License
281 stars 107 forks source link

How should I set `unsubscribed_from_emails`? #311

Open vesan opened 5 years ago

vesan commented 5 years ago

Version info

Expected behavior

I can set:

  config.user.unsubscribed_from_emails = Proc.new {|current_user| current_user.unsubscribed? }

Actual behavior

Exception is thrown:

`block in <top (required)>': undefined method `unsubscribed_from_emails=' for IntercomRails::Config::User:Class (NoMethodError)

Is there a reason why I wouldn't want to use intercom-rails to update the unsubscribed information in Intercom?