Class: Admin::DashboardController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/tang/admin/dashboard_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
8
# File 'app/controllers/tang/admin/dashboard_controller.rb', line 5

def index
  @total_customers = Tang.customer_class.where.not(stripe_id: nil).count
  @total_volume = Charge.sum(:amount) / 100
end