Repository navigation
Changes
- The Messenger user is now resolved from
current_userby default. The gem no longer reads@userautomatically, since in some controllers@userrefers to the record being displayed rather than the signed-in user. - Unsaved user and company records are excluded from Messenger settings consistently, whether they expose
new_record?,persisted?, ornew?.
Upgrading
Applications that provide a saved current_user need no changes.
Applications that expose the signed-in user as @user can keep that behaviour with one line in config/initializers/intercom.rb:
config.user.current = Proc.new { @user }