module Garage::OptionalResponseBodyResponder
  protected

  def api_behavior(*)
    case
    when put? && options[:put] && options[:put][:body]
      display resource, status: options[:put][:status] || :ok
    when delete? && options[:delete] && options[:delete][:body]
      display resource, status: options[:delete][:status] || :ok
    else
      super
    end
  end
end

module Garage::OptionalResponseBodyResponder
  protected

  def api_behavior(*)
    case
    when put? && options[:put] && options[:put][:body]
      display resource, status: options[:put][:status] || :ok
    when patch? && options[:patch] && options[:patch][:body]
      display resource, status: options[:patch][:status] || :ok
    when delete? && options[:delete] && options[:delete][:body]
      display resource, status: options[:delete][:status] || :ok
    else
      super
    end
  end
end

Add an option to respond with body for PATCH
Add an option to respond with body for PATCH
