Class: ReportsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/reports_controller.rb

Overview

Collection of Ajax methods used to provide report info to client-side charting

Instance Method Summary (collapse)

Instance Method Details

- (Object) issues_per_repo

TODO: DOCS, POSSIBLY REWRITE AFTER SOME DESIGN OR SOMETHING



4
5
6
7
8
9
10
# File 'app/controllers/reports_controller.rb', line 4

def issues_per_repo
  if run = Run.last
    render json: Report.issues_per_repo(run)
  else
    render json: {}
  end
end