Created
November 13, 2014 12:47
-
-
Save sha1sum/300b8bdabdfc606dcf6d to your computer and use it in GitHub Desktop.
GroupMe Powerups Initializer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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