remiprev/her — pull request #284 by aauthor (2014-09-15 20:34:01+00:00)
Title: Ignore belongs_to relations when parsing params

By convention, `belongs_to` relations are not parsed into the params; however in some contexts, the `belongs_to` `:data_key` might be set in `attributes`. The `#to_params` method does not attempt to parse these attributes, and so, one ends up with a JSON body containing:

```JSON
{
...
"some_belongs_to_key":"#",
...
}
```

This is extra noise through the pipe at best, and in our use, cause the resource server to complain and 400/500.

This fix, strips out any `belongs_to` `data_key` in the `attributes` when parsing params.