Class: ResponderWithPutContent
- Inherits:
-
Roar::Rails::Responder
- Object
- Roar::Rails::Responder
- ResponderWithPutContent
- Defined in:
- lib/openstax/api/responder_with_put_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_content.rb', line 4 def api_behavior(*args, &block) return display resource, :status => :ok if put? || \ (respond_to?(:patch?) && patch?) super end |