gocardless/gocardless-ruby — pull request #22 by timcraft (2012-09-30 16:58:02+00:00)
Title: Fix sub-resource query params bug

I'm trying to use code that looks like this:

```ruby
gocardless.merchant.bills(source_id: subscription_id)
```

This is currently broken. The existing implementation of the sub resource methods in `GoCardless::Merchant` looks correct, but it isn't the code being called. Instead it's using the singleton methods defined in `GoCardless::Resource#initialize`, which aren't merging the query params correctly.

This pull request fixes the bug, adds a little bit of refactoring, and removes the unnecessary methods from `GoCardless::Merchant`.