forked from Trustie/forgeplus
fixed 代码错误
This commit is contained in:
parent
4c5994051d
commit
4bd585cf7e
|
|
@ -18,16 +18,16 @@
|
|||
|
||||
class ProjectActions::IssuesEvent < ProjectAction
|
||||
def self.build(project, user, issue, action)
|
||||
project_action = new(project: project, user: user)
|
||||
project_action.event_extra = {
|
||||
issue_id: issue.id,
|
||||
issue_number: issue.project_issues_index,
|
||||
issue_author_id: issue.author_id,
|
||||
issue_author_login: issue.user.login,
|
||||
title: issue.subject,
|
||||
body: issue.description,
|
||||
action: action
|
||||
}
|
||||
project_action.save!
|
||||
# project_action = new(project: project, user: user)
|
||||
# project_action.event_extra = {
|
||||
# issue_id: issue.id,
|
||||
# issue_number: issue.project_issues_index,
|
||||
# issue_author_id: issue.author_id,
|
||||
# issue_author_login: issue.user.login,
|
||||
# title: issue.subject,
|
||||
# body: issue.description,
|
||||
# action: action
|
||||
# }
|
||||
# project_action.save!
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue