jasonm/backbone_sync-rails — pull request #3 by patricksrobertson (2011-10-21 17:58:19+00:00)
Title: Broadcast to the Faye channel when a model is touched.

It seems like a fairly common idiom to include child models into their parent model via the methods hash on the mode#as_json. The fun part is that you need to publish these changes on the Faye server and that is generally best done through touching the parent model on create/update/delete of the child object. This patch adds that callback onto the Observer.

Apologies that this patch doesn't come with a test, but the test suite seems a bit sparse. Just extracted the functionality from a well tested Iora suite though.