Skip to content

Commit

Permalink
Model#faye_channel -> Model.faye_channel
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Morrison committed Sep 26, 2011
1 parent 7ee0c3a commit 7e62aec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -68,7 +68,7 @@ This assumes you already have a Backbone.js + Rails app.
this.users = new MyApp.Collections.UsersCollection();
var fayeClient = new Faye.Client('<%= BackboneSync::Rails::Faye.root_address %>/faye');
new BackboneSync.RailsFayeSubscriber(this.users, {
channel: 'users', // Set to Rails model.class.table_name, or override Model#faye_channel
channel: 'users', // Set to Rails model.class.table_name, or override Model.faye_channel
client: fayeClient
});
this.wizards.reset(options.users);
Expand Down
2 changes: 1 addition & 1 deletion lib/backbone_sync-rails/faye/event.rb
Expand Up @@ -24,7 +24,7 @@ def message
end

def channel
subchannel = @model.try(:faye_channel) || @model.class.table_name
subchannel = @model.class.try(:faye_channel) || @model.class.table_name
"/sync/#{subchannel}"
end

Expand Down

0 comments on commit 7e62aec

Please sign in to comment.