zendesk/zendesk_api_client_rb — pull request #22 by dlee (2012-06-11 13:44:23+00:00)
Title: Only join array values for specific params

Rack-style url query-based array values don't work for API requests; all array values get comma-joined. The server side doesn't accept the comma-joined arrays for all params. I was only able to find cases for `ids`, `include`, and `only`.

Support for query-based array values is required to do `api_client.users(:roles => [2,4])`. The choices were to either add support for comma-joined values for all params that can be arrays *in the server*, or to supply query-based array values in the client. I opted to patch the client.

If this patch makes sense, please add some tests to both client and server, and merge to master.

/cc @steved555 @grosser