ruby-grape/grape

View on GitHub
lib/grape/exceptions/empty_message_body.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Grape
  module Exceptions
    class EmptyMessageBody < Base
      def initialize(body_format)
        super(message: compose_message(:empty_message_body, body_format: body_format), status: 400)
      end
    end
  end
end