Class: PaperclipUploadResponder
- Inherits:
-
ActionController::Responder
- Object
- ActionController::Responder
- PaperclipUploadResponder
- Defined in:
- app/responders/paperclip_upload_responder.rb
Instance Method Summary collapse
Instance Method Details
#respond ⇒ Object
2 3 4 5 6 7 |
# File 'app/responders/paperclip_upload_responder.rb', line 2 def respond return display_errors if has_errors? return head :no_content if delete? display resource, :status_code => status_code end |