intercom-rails icon indicating copy to clipboard operation
intercom-rails copied to clipboard

How should I set `unsubscribed_from_emails`?

Open vesan opened this issue 5 years ago • 0 comments

Version info

  • intercom-rails version: 0.4.0
  • Rails version: 5.2.3

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?

vesan avatar Jul 05 '19 14:07 vesan