Fixed comment + code style

This commit is contained in:
Yoong Kang Lim committed 2014-11-13 02:10:54 +11:00
1 parent 03fea2a785
commit 77f40a3dc2
1 file changed
+2 -3
+2 -3
View File
@@ -13,14 +13,13 @@ class FollowsController < ApplicationController
end
end
# DELETE /follows/1
# DELETE /follows/1.json
def destroy
@follow = current_member.follows.find(params[:id])
unfollowed_name = @follow.followed.login_name
@follow.destroy
flash[:notice] = "Unfollowed #{ @follow.followed.login_name }"
flash[:notice] = "Unfollowed #{ unfollowed_name }"
redirect_to root_path
end
end