Skip to content

Instantly share code, notes, and snippets.

@jlebrech
Created April 10, 2012 09:49
Show Gist options
  • Save jlebrech/bdf52959c80fe8682c72 to your computer and use it in GitHub Desktop.
Save jlebrech/bdf52959c80fe8682c72 to your computer and use it in GitHub Desktop.
def self.load_extra_info(ticket)
if !ticket.game_id.nil? then
game = Game.find(ticket.game_id).slug
Managementdb.login(game)
profile = Managementdb.profile(ticket.player_id)
ticket.name = profile.playerName
ticket.is_buyer = Logdata.game(game).is_buyer(ticket.player_id)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment