Created
March 22, 2011 13:50
-
-
Save jpogran/881230 to your computer and use it in GitHub Desktop.
friendly name for user in view
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
def full_name | |
"#{first_name} #{last_name}".trim | |
end | |
def friendly_name | |
return full_name unless full_name.blank? | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment