Created
August 6, 2019 17:27
-
-
Save vertden/4b871fbe65ab7c65627d23db284f9dd1 to your computer and use it in GitHub Desktop.
Revisions
-
vertden created this gist
Aug 6, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ 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