Skip to content

Instantly share code, notes, and snippets.

@diegorv
Created July 28, 2009 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diegorv/157543 to your computer and use it in GitHub Desktop.
Save diegorv/157543 to your computer and use it in GitHub Desktop.
def total_sold
self.prospects.map{ |prospect| @qt =+ 1 if prospect.status == "sold" }
@qt
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment