Skip to content

Instantly share code, notes, and snippets.

@bleonard
Created December 24, 2016 19:13
Show Gist options
  • Save bleonard/a2961ad726eee34b0836323cb9f12564 to your computer and use it in GitHub Desktop.
Save bleonard/a2961ad726eee34b0836323cb9f12564 to your computer and use it in GitHub Desktop.
subscribe "task_changed", "bus_event_type" => "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