summaryrefslogtreecommitdiff
path: root/billing/app/controllers/billing_admin_controller.rb
blob: 2a5165cb4f072229a172491987dccf970e6bf1a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class BillingAdminController < BillingBaseController
  before_filter :authorize_admin

  def show
    @past_due_atleast_90_days = Braintree::Subscription.search do |search|
      search.days_past_due >= 90
    end

    @all_past_due = Braintree::Subscription.search do |search|
      search.status.is Braintree::Subscription::Status::PastDue
    end
  end

end