Skip to content

Instantly share code, notes, and snippets.

@dhoelzgen
Created November 15, 2013 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhoelzgen/7484015 to your computer and use it in GitHub Desktop.
Save dhoelzgen/7484015 to your computer and use it in GitHub Desktop.
Just add the following to your Intercom initializer which was generated by the intercom-rails gem. It disabled the messages module completely, so you can implement your own version using the API directly.
# Add a disabled modules configuration to the script tag configuration
module IntercomRails
class ScriptTag
alias_method :original_intercom_settings, :intercom_settings
def intercom_settings
hsh = original_intercom_settings
hsh[:disable_modules] = ['messages']
hsh
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment