This commit is contained in:
cxt 2016-04-08 18:52:26 +08:00
parent 89330f9e40
commit 440ba27fa4
5 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,4 @@
#encoding: utf-8
class BlogComment < ActiveRecord::Base class BlogComment < ActiveRecord::Base
# attr_accessible :title, :body # attr_accessible :title, :body
require 'net/http' require 'net/http'

View File

@ -1,3 +1,4 @@
#encoding: utf-8
#老师布置的作业表 #老师布置的作业表
#homework_type: 0:普通作业;1:匿评作业;2:编程作业 #homework_type: 0:普通作业;1:匿评作业;2:编程作业
class HomeworkCommon < ActiveRecord::Base class HomeworkCommon < ActiveRecord::Base

View File

@ -1,3 +1,4 @@
#encoding: utf-8
# Redmine - project management software # Redmine - project management software
# Copyright (C) 2006-2013 Jean-Philippe Lang # Copyright (C) 2006-2013 Jean-Philippe Lang
# #
@ -252,7 +253,7 @@ class Journal < ActiveRecord::Base
color:"#173177" color:"#173177"
}, },
keyword1:{ keyword1:{
value:self.author.try(:realname), value:self.user.try(:realname),
color:"#173177" color:"#173177"
}, },
keyword2:{ keyword2:{
@ -260,7 +261,7 @@ class Journal < ActiveRecord::Base
color:"#173177" color:"#173177"
}, },
keyword3:{ keyword3:{
value:self.description.html_safe, value:self.notes.html_safe,
color:"#173177" color:"#173177"
}, },
remark:{ remark:{

View File

@ -1,3 +1,4 @@
#encoding: utf-8
# fq # fq
# 数据库字段中带有m前缀和is_readed是二次开发添加之前的字段基本复用 # 数据库字段中带有m前缀和is_readed是二次开发添加之前的字段基本复用
# 注意reply_id 是提到人的id不是留言id, Base中叫做 at_user # 注意reply_id 是提到人的id不是留言id, Base中叫做 at_user

View File

@ -1,3 +1,4 @@
#encoding: utf-8
# Redmine - project management software # Redmine - project management software
# Copyright (C) 2006-2013 Jean-Philippe Lang # Copyright (C) 2006-2013 Jean-Philippe Lang
# #