Skip to content

Instantly share code, notes, and snippets.

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