Skip to content

Instantly share code, notes, and snippets.

@chrislloyd
Forked from carlwoodward/gist:107406
Created May 6, 2009 12:56
Show Gist options
  • Save chrislloyd/107506 to your computer and use it in GitHub Desktop.
Save chrislloyd/107506 to your computer and use it in GitHub Desktop.
Registration.find_all_by_complete(true).each_with_object({}) do |reg, count|
date = reg.sydney_updated_at.to_date
count[date] ||= 0
count[date] += 1
end
registration_count.inspect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment