when delete co-author relation, the co-author will be reset nil

This commit is contained in:
Rueshyna authored and chris committed 2012-12-06 07:59:42 +08:00
1 parent 09c59c4e03
commit afd8e7e380
3 files changed
+8 -1

No files matched your search

@@ -27,6 +27,7 @@ class Desktop::CoAuthorRelationsController < ApplicationController
def destroy
@co_author_relation = CoAuthorRelation.find(params[:id])
@co_author_relation.destroy
#reset_co_author_relation @co_author_relation
render :json => {success: true, msg: "deleted successfully!"}
end