gocardless/gocardless-ruby — pull request #4 by alan (2012-01-17 14:14:32+00:00)
Title: Confirm payment with hash with indifferent access

Fixes the problem of confirming the resource with Rails 'params'.

The change is to convert the params argument of confirm_resource method to a Hash, so that the rest of the method works correctly with Rails HashWithIndifferentAccess.

I looked into symbolising the keys of a HashWithIndifferentAccess but keys can't be a symbol so that wasn't a good option.

ActiveSupport is now a development dependency, is not required for general use of the gem.

I also added a spec for rejecting the params inside confirm_resource as it was missing.