Created
April 27, 2010 10:26
-
-
Save mdeiters/380596 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| module GamesHelper | |
| def friendly_team_name(team) | |
| if team.nil? | |
| '' | |
| else | |
| team.name | |
| end | |
| end | |
| def friendly_team_name(team) | |
| return '' if team.nil? | |
| team.name | |
| end | |
| def friendly_team_name(team) | |
| team.name unless team.nil? | |
| end | |
| def friendly_team_name(team) | |
| return team.name if team | |
| end | |
| def friendly_team_name(team) | |
| team.nil? ? '' : team.name | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment