Skip to content
Extraits de code Groupes Projets
Valider d7a9c3c0 rédigé par Raphael's avatar Raphael
Parcourir les fichiers

Take out another couple friends.first and replace with friend_by_id

parent 4f22222b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -20,7 +20,7 @@ class ApplicationController < ActionController::Base
@groups = current_user.groups
@friends = current_user.friends
@latest_status_message = StatusMessage.newest_for(current_user.person)
@group = params[:group] ? current_user.groups.first(:id => params[:group]) : current_user.groups.first
@group = params[:group] ? current_user.group_by_id(params[:group]) : current_user.groups.first
end
end
......
......@@ -15,7 +15,7 @@ class PeopleController < ApplicationController
end
def destroy
current_user.unfriend(current_user.friends.first(params[:id]))
current_user.unfriend(current_user.friend_by_id(params[:id]))
flash[:notice] = "unfriended person."
redirect_to people_url
end
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter