Skip to content

Instantly share code, notes, and snippets.

@gotascii
Created February 10, 2012 20:06
Show Gist options
  • Select an option

  • Save gotascii/1792361 to your computer and use it in GitHub Desktop.

Select an option

Save gotascii/1792361 to your computer and use it in GitHub Desktop.
Hm
next unless delivery_message =
begin
Message.find_by_id(message.id)
rescue SecurityContextException => ex
logger.warn{ "message_broadcaster Could not load message #{message.id} for user #{subscription.user.id}" }
end
if subscription.client.delivery_appropriate?(delivery_message)
# logger.debug{ "SENDING mid: #{message.id} to uid:#{subscription.client.user_id} client_id:#{subscription.client}" }
subscription.client.deliver_message(delivery_message)
else
# logger.debug{ "NOT SENDING mid: #{message.id} to #{subscription.client.client_id}" }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment