Created
November 15, 2013 13:03
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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