Created
August 6, 2019 17:27
-
-
Save vertden/4b871fbe65ab7c65627d23db284f9dd1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pledge.all.to_a.group_by{|p| p.created_at.day}.map{|day,p| [day, p.size]}.inject({}) do |q,w| | |
q.merge!({w[0]=>w[1]}) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment