app/controllers/curupira/users_controller.rb in curupira-0.1.3 vs app/controllers/curupira/users_controller.rb in curupira-0.1.4
- old
+ new
@@ -39,10 +39,10 @@
end
end
def permission
@user = User.find(params[:user_id])
- @group_user = @user.group_users.find_by(group_id: params[:group_id])
+ @group_user = @user.group_users.find(params[:group_user_id])
@group = @group_user.group
end
private