app/channels/cubism/presence_channel.rb~ in cubism-0.1.0.pre3 vs app/channels/cubism/presence_channel.rb~ in cubism-0.1.0.pre4

- old
+ new

@@ -2,24 +2,28 @@ include CableReady::StreamIdentifier def subscribed if resource.present? stream_for resource - resource.present_users.add(current_user.id) + resource.present_users.add(user.id) else reject end end def unsubscribed return unless resource.present? - resource.present_users.remove(current_user.id) + resource.present_users.remove(user.id) end private def resource locator = verified_stream_identifier(params[:identifier]) GlobalID::Locator.locate(locator) + end + + def user + GlobalID::Locator.locate_signed(params[:user]) end end