app/controllers/uploader/attachments_controller.rb in rails-uploader-0.5.0 vs app/controllers/uploader/attachments_controller.rb in rails-uploader-0.5.1

- old
+ new

@@ -67,15 +67,9 @@ hash = { name: record.filename, error: record.errors.full_messages.first } render_json({ files: [hash] }, 422) end end - def render_json(hash_or_object, status = 200) - self.status = status - self.content_type = request.format - self.response_body = hash_or_object.to_json(root: false) - end - def asset_params ActionController::Parameters.new(params).require(:asset).permit(:data) end end end