Update user finding (by username) in admin teams members controller

This commit is contained in:
Andrey Kumanyaev 2013-01-25 22:33:49 +04:00
parent 6efda51cc5
commit f225ff8674

View file

@ -36,6 +36,6 @@ class Admin::Teams::MembersController < Admin::Teams::ApplicationController
protected
def team_member
@member ||= user_team.members.find(params[:id])
@member ||= user_team.members.find_by_username(params[:id])
end
end