Created
March 23, 2011 14:53
-
-
Save aquajach/883223 to your computer and use it in GitHub Desktop.
nonsense
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def delete_comment | |
message = Message.of(current_account.permalink).find(params[:message_id]) | |
comment = message.comments.criteria.where(:comment_id => params[:id]).first | |
current_account.facebook.api.delete(comment.comment_id) | |
comment.destroy | |
respond_to do |format| | |
format.json { render :json => message } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment