modify note.type to note.category
This commit is contained in:
parent
51e155dafa
commit
3885ad5b36
|
@ -77,7 +77,7 @@ class MissionsController < ApplicationController
|
||||||
note = Note.new
|
note = Note.new
|
||||||
note.project_id = pid
|
note.project_id = pid
|
||||||
note.user_id = uid
|
note.user_id = uid
|
||||||
note.type = 3
|
note.category = 3
|
||||||
note.content = "任务信息发生了变化"
|
note.content = "任务信息发生了变化"
|
||||||
note.save!
|
note.save!
|
||||||
end
|
end
|
||||||
|
|
|
@ -17,7 +17,7 @@ class NotesController < ApplicationController
|
||||||
note[:date] += [{
|
note[:date] += [{
|
||||||
:content => i.content,
|
:content => i.content,
|
||||||
:time => i.created_at.to_time,
|
:time => i.created_at.to_time,
|
||||||
:type => i.type
|
:type => i.category
|
||||||
}]
|
}]
|
||||||
end
|
end
|
||||||
data = []
|
data = []
|
||||||
|
|
|
@ -55,7 +55,7 @@ class ProjectsController < ApplicationController
|
||||||
note = Note.new
|
note = Note.new
|
||||||
note.user_id = uid
|
note.user_id = uid
|
||||||
note.project_id = pid
|
note.project_id = pid
|
||||||
note.type = 2
|
note.category = 2
|
||||||
note.content = User.find(uid).name + "邀请您进入项目" +
|
note.content = User.find(uid).name + "邀请您进入项目" +
|
||||||
Project.find(pid).name
|
Project.find(pid).name
|
||||||
note.save!
|
note.save!
|
||||||
|
|
|
@ -19,7 +19,7 @@ class SharesController < ApplicationController
|
||||||
note = Note.new
|
note = Note.new
|
||||||
note.user_id = tuid
|
note.user_id = tuid
|
||||||
note.project_id = pid
|
note.project_id = pid
|
||||||
note.type = 1
|
note.category = 1
|
||||||
note.content = content
|
note.content = content
|
||||||
note.save!
|
note.save!
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue