Shopify/batman — pull request #455 by RyanonRails (2012-06-07 17:27:37+00:00)
Title: @hasMany causes extra parameter in PUT request

An extra ampersand is being appended to the end when a hasMany is being saved and no children are present.
```
Model:
class EST.Template extends Batman.Model
@resourceName: 'template'
@url = "/api/templates"

@set 'primaryKey', 'TemplateId'

@persist Batman.RestStorage
@encode 'TemplateId', 'Name'

@hasMany 'sections'
```
In this example a template doesn't have any sections, this is the parm string when it's created (POST):
template[TemplateId]=3&template[Name]=4444aaaaabbbbb& <--

This is causing IIS (or MVC4) not sure which to crash out and throw an error. More code/details here: https://groups.google.com/forum/#!topic/batmanjs/ny5aVBh6aqQ