module IntercomApp::Utils

Public Instance Methods

random_hub_secret() click to toggle source
# File lib/intercom-app/hub_secret_generator.rb, line 10
def random_hub_secret
  Digest::SHA1.hexdigest random_string
end
random_string() click to toggle source
# File lib/intercom-app/hub_secret_generator.rb, line 6
def random_string
  (0...20).map { (65 + rand(26)).chr }.join
end