From 41eb0f61e46731fda2381369a2a307eca32ea7f3 Mon Sep 17 00:00:00 2001 From: jessib Date: Tue, 7 May 2013 14:15:17 -0700 Subject: Note about knowing sort order for returned transactions --- billing/app/controllers/payments_controller.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'billing/app/controllers') diff --git a/billing/app/controllers/payments_controller.rb b/billing/app/controllers/payments_controller.rb index 89fdeb0..6cce9bf 100644 --- a/billing/app/controllers/payments_controller.rb +++ b/billing/app/controllers/payments_controller.rb @@ -30,6 +30,7 @@ class PaymentsController < ApplicationController def index customer = Customer.find_by_user_id(current_user.id) braintree_data = Braintree::Customer.find(customer.braintree_customer_id) + # these will be ordered by created_at descending, per http://stackoverflow.com/questions/16425475/ @transactions = braintree_data.transactions end -- cgit v1.2.3