spreedly / spreedly-gem

(UNSUPPORTED) A convenient Ruby wrapper for the Spreedly API.
https://developer.spreedly.com
MIT License
108 stars 86 forks source link

spreedly gem patch #122

Closed emilylittle closed 2 months ago

emilylittle commented 2 months ago

This is a hacky fix intended to address our specific use case. We need to send an array of length 1 of line items to spreedly https://github.com/tremendous-rewards/core/blob/master/app/models/spreedly_payment.rb#L402, but their gem doesn't currently support that. This code adds a clause so that we will properly process arrays of length 1.