Skip to content

Instantly share code, notes, and snippets.

@stanpalatnik
Last active December 15, 2015 15:49
Show Gist options
  • Save stanpalatnik/5284963 to your computer and use it in GitHub Desktop.
Save stanpalatnik/5284963 to your computer and use it in GitHub Desktop.
detach { //this creates a new actor
completeWith { //we use a completeWith directive which respones with whatever we output at the end of the code block
var person = new Person();
person.address = getAddress(address['latitude'], address['longitude']).then((result) => person.address = result)
person.save
"saved!"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment