Update 10/23/2020
The new Stripe API requires the following:
Stripe::Invoice.list(customer: CUSTOMER_ID)
Original Answer
It looks like like calling all
on invoices overrides the previous query where it retrieves the invoices for the customer.
The following retrieves all invoices:
customer.invoices.all
The following retrieves all invoices for the customer only:
customer.invoices