craigchristenson/2checkout-ruby — pull request #1 by gnapse (2012-08-20 21:24:09+00:00)
Title: Fix issue that prevents to query sales by invoice_id instead of sale_id

Sale#retrieve fails to detect if it is called with in invoice_id instead of a sale_id parameter, since the ruby expression `'sale_id' || 'invoice_id'` always results in `'sale_id'`. This commit fixes this issue.