A bit more CoffeeScripted:

```coffee
settings.url ?= Ajax.getURL(record)
settings.data?.id = record.id
```