OSDN Git Service
(root)
/
wvm
/
gitlab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f225ff8
)
Update user finding (by username) in teams_members (project team) controller
author
Andrey Kumanyaev
<me@zzet.org>
Fri, 25 Jan 2013 18:34:49 +0000
(22:34 +0400)
committer
Andrey Kumanyaev
<me@zzet.org>
Fri, 25 Jan 2013 18:34:49 +0000
(22:34 +0400)
app/controllers/team_members_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/team_members_controller.rb
b/app/controllers/team_members_controller.rb
index
7e4c879
..
18d4ae3
100644
(file)
--- a/
app/controllers/team_members_controller.rb
+++ b/
app/controllers/team_members_controller.rb
@@
-39,7
+39,7
@@
class TeamMembersController < ProjectResourceController
end
def destroy
- @user_project_relation = project.users_projects.find_by_user_id(
params[:id]
)
+ @user_project_relation = project.users_projects.find_by_user_id(
member
)
@user_project_relation.destroy
respond_to do |format|
@@
-59,6
+59,6
@@
class TeamMembersController < ProjectResourceController
protected
def member
- @member ||= User.find(params[:id])
+ @member ||= User.find
_by_username
(params[:id])
end
end