Created
June 24, 2009 10:40
-
-
Save rlivsey/135147 to your computer and use it in GitHub Desktop.
useless comments
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
# Setting play_mode equals params mode if it exists and is equals fun or real | |
play_mode = params[:mode] if params[:mode] and ['fun', 'real'].include? params[:mode] | |
# Setting play mode equals fun if user is not logged in | |
play_mode = 'fun' unless has_user_logged? | |
# Setting game_mode equals demoplay when play_mode equals fun | |
game_mode = play_mode == 'fun' ? 'demoplay' : '' | |
# Setting free play equals true if play mode equals fun | |
free_play = play_mode == 'fun' ? 'true' : 'false' | |
# Setting login url | |
login_url = '/vc_games.jsp' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment