Skip to content

Instantly share code, notes, and snippets.

@jdkealy
Created October 9, 2011 12:37
Show Gist options
  • Save jdkealy/1273639 to your computer and use it in GitHub Desktop.
Save jdkealy/1273639 to your computer and use it in GitHub Desktop.
def rank
Member.where("cached_total > ?", cached_total).count + 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment