Sha256: 714876848b3c4bb0ff4dd583f52f2f8e8d72edc6b5dfb68d0a8d2e6b38a43c2c

Contents?: true

Size: 288 Bytes

Versions: 7

Compression:

Stored size: 288 Bytes

Contents

##
# Standard application controller.
class ApplicationController < ActionController::API
  rescue_from Dry::Struct::Error do
    head :bad_request
  end

  rescue_from SoberSwag::Reporting::Report::Error do |error|
    render json: error.report.path_hash, status: :bad_request
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sober_swag-0.25.2 example/app/controllers/application_controller.rb
sober_swag-0.25.1 example/app/controllers/application_controller.rb
sober_swag-0.25.0 example/app/controllers/application_controller.rb
sober_swag-0.24.1 example/app/controllers/application_controller.rb
sober_swag-0.24.0 example/app/controllers/application_controller.rb
sober_swag-0.23.0 example/app/controllers/application_controller.rb
sober_swag-0.22.0 example/app/controllers/application_controller.rb