mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 07:16:40 +00:00
Refactor request_factory & response_validator
This commit is contained in:
@@ -4,4 +4,9 @@ class ApplicationController < ActionController::Base
|
||||
protect_from_forgery with: :null_session
|
||||
|
||||
wrap_parameters format: [ :json ]
|
||||
|
||||
respond_to :json
|
||||
rescue_from 'ActionController::UnknownFormat' do |ex|
|
||||
head :not_acceptable
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user