Skip to content

Instantly share code, notes, and snippets.

@bleonard
Created December 24, 2016 19:12
Show Gist options
  • Save bleonard/210522f87072173199adf5612746d0ec to your computer and use it in GitHub Desktop.
Save bleonard/210522f87072173199adf5612746d0ec to your computer and use it in GitHub Desktop.
subscribe "task_changed" do |attributes|
if attributes["state"] == 'opened'
TaskIndex.write(attributes["id"])
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment