Created
December 12, 2014 20:32
-
-
Save jmmastey/4b99e12bf2f333c04e06 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
def show_account_label(account) | |
clients = account.client_list | |
description = "#{clients.length} #{"client".pluralize}, " + | |
"last connection: #{clients.last.connected_at.strftime("%H:%M:%S")}" | |
puts description | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment