Skip to content

Instantly share code, notes, and snippets.

@jfriedlaender
Created February 20, 2013 02:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfriedlaender/4992247 to your computer and use it in GitHub Desktop.
Save jfriedlaender/4992247 to your computer and use it in GitHub Desktop.
Pusher code that does work with Unicorn
def send_cool_event
Pusher["fancy-pants-channel"].trigger('cool-event', pants_json)
end
handle_asynchronously :send_cool_event
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment