Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jrwest
jrwest / accessing_snapshot.rb
Created May 26, 2011 22:32 — forked from jsmestad/accessing_snapshot.rb
Proposed changes for Mongomatic 0.9.0 (Jordan's Edits)
@snapshot = Snapshot.first
-----
{
:stats => {
'accounts' => { 'count' => 8, 'a' => 1 },
'subscriptions' => { 'count' => 16, 'b' => 1 }
},
:activity => [ {'ns' => 'accounts.users', ...}, {'ns' => 'subscriptions.users' =>, ...} ]
}
-----