Created
June 10, 2013 20:33
-
-
Save CoralineAda/5752028 to your computer and use it in GitHub Desktop.
Fill in missing daily records in a time-series query against a Mongo datastore using Mongoid.
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
activities = Activity.where(:date.gte => dates.first, :date.lte => dates.last) | |