{"issue":{"state":"closed","pull_request":{"diff_url":"https://github.com/jasonm/backbone_sync-rails/pull/3.diff","html_url":"https://github.com/jasonm/backbone_sync-rails/pull/3","patch_url":"https://github.com/jasonm/backbone_sync-rails/pull/3.patch"},"user":{"avatar_url":"https://secure.gravatar.com/avatar/718bd208935e684723eba028386f9a92?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"718bd208935e684723eba028386f9a92","url":"https://api.github.com/users/patricksrobertson","login":"patricksrobertson","id":115316},"milestone":null,"labels":[],"assignee":null,"updated_at":"2011-10-31T15:57:46Z","closed_at":"2011-10-31T15:57:46Z","comments":1,"url":"https://api.github.com/repos/jasonm/backbone_sync-rails/issues/3","body":"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.\r\n\r\nApologies 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.","html_url":"https://github.com/jasonm/backbone_sync-rails/issues/3","title":"Broadcast to the Faye channel when a model is touched.","number":3,"id":2017887,"created_at":"2011-10-21T17:58:19Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/718bd208935e684723eba028386f9a92?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"718bd208935e684723eba028386f9a92","url":"https://api.github.com/users/patricksrobertson","login":"patricksrobertson","id":115316},"updated_at":"2011-10-31T15:57:46Z","url":"https://api.github.com/repos/jasonm/backbone_sync-rails/issues/comments/2578795","body":"This is going to come from the IoraHealth fork at some point in the near future.","id":2578795,"created_at":"2011-10-31T15:57:46Z"}}