Sha256: f5a713a7a0a942ece096dd19dbcc24c86ed4c65eec0aa4a8c7ead99771a1d50c

Contents?: true

Size: 417 Bytes

Versions: 8

Compression:

Stored size: 417 Bytes

Contents

# frozen_string_literal: true

module Quilt
  class PerformanceReportController < ActionController::Base
    include Quilt::Performance::Reportable
    protect_from_forgery with: :null_session

    def create
      process_report

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
quilt_rails-3.5.4 app/controllers/quilt/performance_report_controller.rb
quilt_rails-3.5.2 app/controllers/quilt/performance_report_controller.rb
quilt_rails-3.5.1 app/controllers/quilt/performance_report_controller.rb
quilt_rails-3.5.0 app/controllers/quilt/performance_report_controller.rb
quilt_rails-3.4.2 app/controllers/quilt/performance_report_controller.rb
quilt_rails-3.4.1 app/controllers/quilt/performance_report_controller.rb
quilt_rails-3.4.0 app/controllers/quilt/performance_report_controller.rb
quilt_rails-3.3.1 app/controllers/quilt/performance_report_controller.rb