Update user finding (by username) in teams members (team of users) controller
This commit is contained in:
parent
e1679d20c7
commit
df64bdffdf
|
@ -43,7 +43,7 @@ class Teams::MembersController < Teams::ApplicationController
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def team_member
|
def team_member
|
||||||
@member ||= user_team.members.find(params[:id])
|
@member ||= user_team.members.find_by_username(params[:id])
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue