Class: ResponderWithPutPatchDeleteContent

Inherits:
Roar::Rails::Responder
  • Object
show all
Defined in:
lib/openstax/api/responder_with_put_patch_delete_content.rb

Overview

Instance Method Summary collapse

Instance Method Details

#api_behavior(*args, &block) ⇒ Object



4
5
6
7
8
# File 'lib/openstax/api/responder_with_put_patch_delete_content.rb', line 4

def api_behavior(*args, &block)
  return display resource, status: :ok if put? || (respond_to?(:patch?) && patch?) || delete?

  super
end