申请加入项目删除邮件
This commit is contained in:
parent
15227907ea
commit
30ce469483
|
@ -64,7 +64,7 @@ class AppliedProjectController < ApplicationController
|
||||||
role = params[:member] == "member_manager" ? 3 : (params[:member] == "member_developer" ? 4 :5)
|
role = params[:member] == "member_manager" ? 3 : (params[:member] == "member_developer" ? 4 :5)
|
||||||
applied_project = AppliedProject.create(:user_id => User.current.id, :project_id => @project.id, :role => role)
|
applied_project = AppliedProject.create(:user_id => User.current.id, :project_id => @project.id, :role => role)
|
||||||
# 申请成功则给项目管理员发送邮件及发送消息
|
# 申请成功则给项目管理员发送邮件及发送消息
|
||||||
Mailer.run.applied_project(applied_project)
|
# Mailer.run.applied_project(applied_project)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue