Skip to content

Instantly share code, notes, and snippets.

@bricker
Created January 20, 2015 22:32
Show Gist options
  • Save bricker/0f8e73bbdfd2fcdaf66a to your computer and use it in GitHub Desktop.
Save bricker/0f8e73bbdfd2fcdaf66a 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