Class: Quilt::PerformanceReportController

Inherits:
ActionController::Base
  • Object
show all
Includes:
Quilt::Performance::Reportable
Defined in:
app/controllers/quilt/performance_report_controller.rb

Instance Method Summary collapse

Methods included from Quilt::Performance::Reportable

#process_report

Instance Method Details

#createObject



8
9
10
11
12
13
14
# File 'app/controllers/quilt/performance_report_controller.rb', line 8

def create
  process_report

  render(json: { result: 'success' }, status: 200)
rescue ActionController::ParameterMissing => error
  render(json: { error: error.message, status: 422 })
end