railsjedi/aarrr — pull request #1 by robcthegeek (2011-10-27 15:19:13+00:00)
Title: Add 'created_date' to Session. Inferred from ObjectId

Hi Guys,

As per previous message (assume you got?) I have started piecing this together to form an actual cohort reporting system.

In doing so, I noticed one key thing - we don't have the 'created date' stored with the user, so I tried to add it. Ran in to some problems since the actual hydration of the Session is always an upsert.

I didn't want to change so much, so reverted my changes back and opted for the following - simply infer it from the ObjectId and expose the property on the Session.

Would be keen to hear your thoughts.

Best,
Rob