IoraHealth/backbone_sync-rails — pull request #3 by patricksrobertson (2011-10-31 15:49:12+00:00)
Title: Add channel override to observer

Allows Rails observers that mixin Faye::Observer the capability to programmatically override the subchannel.

# app/models/task_observer.rb
class TaskObserver < ActiveRecord::Observer
include BackboneSync::Faye::Observer

def subchannel(model)
model.faye_subchannel # "users//tasks"
end
end