lib/faye_shard/user/faye.rb in faye_shards-0.1.1 vs lib/faye_shard/user/faye.rb in faye_shards-0.1.2

- old
+ new

@@ -17,10 +17,16 @@ # # * <tt>data</tt>:: Data to push # * <tt>ext</tt>:: Faye extensions, eg. auth_token # def push_to_faye(data, ext = {}) - FayeShards.shard(self.id).push(self.faye_channel, data, ext) + faye_shard.push(self.faye_channel, data, ext) + end + + # Returns shard for this user + # + def faye_shard + FayeShards.shard(self.id) end end end