diff options
author | Azul <azul@leap.se> | 2014-04-11 10:03:19 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-04-11 10:07:23 +0200 |
commit | 636692f9921bd695d726695d2d46c91f5a6e56f3 (patch) | |
tree | a7cc0b89007bd273ae7719f31c16e052a141fec7 /billing/app/controllers/billing_admin_controller.rb | |
parent | 32136605ddd405a0bf47f3b795b22fd4b49465b5 (diff) |
move engines into engines directory
Also renamed help to support so it's harder to confuse it with documentation
Diffstat (limited to 'billing/app/controllers/billing_admin_controller.rb')
-rw-r--r-- | billing/app/controllers/billing_admin_controller.rb | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/billing/app/controllers/billing_admin_controller.rb b/billing/app/controllers/billing_admin_controller.rb deleted file mode 100644 index e11d4ee..0000000 --- a/billing/app/controllers/billing_admin_controller.rb +++ /dev/null @@ -1,29 +0,0 @@ -class BillingAdminController < BillingBaseController - before_filter :require_admin - - def show - - br_atleast_90_days = Braintree::Subscription.search do |search| - search.days_past_due >= 90 - end - @past_due_atleast_90_days = braintree_resource_collection_to_array(br_atleast_90_days) - - br_all_past_due = Braintree::Subscription.search do |search| - search.status.is Braintree::Subscription::Status::PastDue - #cannot search by balance. - end - @all_past_due = braintree_resource_collection_to_array(br_all_past_due) - - end - - private - - def braintree_resource_collection_to_array(braintree_resource_collection) - array = [] - braintree_resource_collection.each do |object| - array << object - end - array - end - -end |