stripe/stripe-ruby — Issue #11: Stripe::Customer should always respond_to? :active_card
Author: nirvdrum
Created: 2012-01-25 20:47:10+00:00
State: open

We just migrated a bunch of accounts over to Stripe and some didn't have a credit card attached to it. Our code naively assumed that if a customer didn't have an active card, that `customer.active_card` would return nil. In fact, it raises a NoMethodError.

I think it'd be a lot cleaner from a client perspective if it did just return nil in that case.