Skip to content

Instantly share code, notes, and snippets.

@techwraith
Created July 31, 2013 23:26
Show Gist options
  • Save techwraith/6127158 to your computer and use it in GitHub Desktop.
Save techwraith/6127158 to your computer and use it in GitHub Desktop.
geddy.model.Conversation.first(params.id, function(err, conversation) {
geddy.model.Message.all({conversationId: conversation.id}, {includes: [ 'users']}
, function (err, messages) {
conversation.messages = messages;
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment