modify note.type to note.category

This commit is contained in:
alan snape 2016-12-29 12:19:55 +00:00
parent 51e155dafa
commit 3885ad5b36
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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 = []

View File

@ -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!

View File

@ -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