Skip to content

Instantly share code, notes, and snippets.

@sha1sum
Created November 13, 2014 12:47
Show Gist options
  • Save sha1sum/300b8bdabdfc606dcf6d to your computer and use it in GitHub Desktop.
Save sha1sum/300b8bdabdfc606dcf6d to your computer and use it in GitHub Desktop.
GroupMe Powerups Initializer
powerups_url = "https://powerup.groupme.com/powerups"
unless Rails.env.test?
response = HTTParty.get(powerups_url)
if response.success?
::GroupMePowerUps = response['powerups']
else
::GroupMePowerUps = Array.new
end
else
::GroupMePowerUps = Array.new
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment