Update user finding (by username) in teams members (team of users) controller

This commit is contained in:
Andrey Kumanyaev 2013-01-25 22:35:31 +04:00
parent e1679d20c7
commit df64bdffdf

View file

@ -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