Skip to content

Instantly share code, notes, and snippets.

@diegorv
Created July 28, 2009 17:14
Show Gist options
  • Select an option

  • Save diegorv/157543 to your computer and use it in GitHub Desktop.

Select an option

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