Skip to content

Instantly share code, notes, and snippets.

@towski
Created January 20, 2015 22:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save towski/9eead4b5b0d119ff174e to your computer and use it in GitHub Desktop.
Save towski/9eead4b5b0d119ff174e to your computer and use it in GitHub Desktop.
{
...
:user_hash => Proc.new { |current_user|
OpenSSL::HMAC.hexdigest( "sha256", "ENV['intercom_secret']",
current_user.id.to_s) },
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment