Skip to content

Instantly share code, notes, and snippets.

@tubbo
Forked from towski/gist:9eead4b5b0d119ff174e
Last active August 29, 2015 14:13
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 tubbo/c9edfdad7049ace5c2b6 to your computer and use it in GitHub Desktop.
Save tubbo/c9edfdad7049ace5c2b6 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