Skip to content

v2.0.0

Latest

Choose a tag to compare

@shab2k03 shab2k03 released this 13 Oct 10:23
· 1 commit to master since this release
Immutable release. Only release title and notes can be modified.
f17d01a

Changes

  • The Messenger user is now resolved from current_user by default. The gem no longer reads @user automatically, since in some controllers @user refers 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?, or new?.

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 }