mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-27 17:28:26 -04:00
Fixed comment + code style
This commit is contained in:
1 parent
03fea2a785
commit
77f40a3dc2
1 file changed
+2
-3
@@ -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
|
||||
Reference in new issue
Block a user