Skip to content

Instantly share code, notes, and snippets.

@jmmastey
Created December 12, 2014 20:32
Show Gist options
  • Save jmmastey/4b99e12bf2f333c04e06 to your computer and use it in GitHub Desktop.
Save jmmastey/4b99e12bf2f333c04e06 to your computer and use it in GitHub Desktop.
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