corrected link on the account page
This commit is contained in:
parent
bb7e2a9918
commit
d6b08de6fc
2 changed files with 4 additions and 3 deletions
|
|
@ -339,9 +339,9 @@ class User
|
||||||
def unfriend_everyone
|
def unfriend_everyone
|
||||||
friends.each{ |friend|
|
friends.each{ |friend|
|
||||||
if friend.owner?
|
if friend.owner?
|
||||||
friend.owner.unfriended_by (self.person )
|
friend.owner.unfriended_by self.person
|
||||||
else
|
else
|
||||||
self.unfriend( friend )
|
self.unfriend friend
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@
|
||||||
= link_to "download my photos", users_export_photos_path, :class => "button"
|
= link_to "download my photos", users_export_photos_path, :class => "button"
|
||||||
|
|
||||||
%h3 Close Account
|
%h3 Close Account
|
||||||
|
|
||||||
= link_to "Close Account", current_user,
|
= link_to "Close Account", current_user,
|
||||||
:confirm => "Are you sure?", :method => :delete,
|
:confirm => "Are you sure?", :method => :delete,
|
||||||
:class => "button`"
|
:class => "button"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue