Skip to content

Instantly share code, notes, and snippets.

@johnhamelink
Created May 3, 2016 14:24
Show Gist options
  • Select an option

  • Save johnhamelink/f1e8d3c25ebec5ce15dc496dd774788c to your computer and use it in GitHub Desktop.

Select an option

Save johnhamelink/f1e8d3c25ebec5ce15dc496dd774788c to your computer and use it in GitHub Desktop.
if player.state == Player.states[:requested_to_join]
message = "#{current_user.name} has requested to join '#{player.play.event.name}'"
uri_opts = {notif_event: "request_to_join", from_id: player.id}
category = "request_to_join"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment