Skip to content

Commit e24f92e

Browse files
committed
Merge branch 'following-users'
2 parents 70fc785 + c279eb1 commit e24f92e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/microposts_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def create
1717
def destroy
1818
@micropost.destroy
1919
flash[:success] = "Micropost deleted"
20-
if request.referrer.nil? || request.referrer == microposts_url
20+
if request.referrer.nil?
2121
redirect_to root_url, status: :see_other
2222
else
2323
redirect_to request.referrer, status: :see_other

0 commit comments

Comments
 (0)