Class: Crm::Reports::StatusTimelineReportController

Inherits:
CrmController
  • Object
show all
Defined in:
app/controllers/crm/reports/status_timeline_report_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



2
3
4
5
6
7
8
9
10
11
12
13
# File 'app/controllers/crm/reports/status_timeline_report_controller.rb', line 2

def index
  respond_to do |format|
    format.html {
      render locals: {
        status_timeline_data: ::Report::StatusTimelineReport.get_statuses_from_range
      }
    }
    format.json {
      render json: ::Report::StatusTimelineReport.get_statuses_from_range(params[:start_time], params[:end_time])
    }
  end
end