RS, IZ; hack to test requests, accepted friends go into the first group.
This commit is contained in:
parent
3d57fb7f78
commit
af6c70db47
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ class RequestsController < ApplicationController
|
|||
|
||||
def destroy
|
||||
if params[:accept]
|
||||
@friend = current_user.accept_friend_request params[:id]
|
||||
@friend = current_user.accept_friend_request( params[:id], current_user.groups.first.id)
|
||||
|
||||
flash[:notice] = "you are now friends"
|
||||
redirect_to root_url
|
||||
|
|
|
|||
Loading…
Reference in a new issue