添加注释
This commit is contained in:
parent
ae74dff89b
commit
03ae5fdeac
|
@ -126,6 +126,7 @@ class Project < ActiveRecord::Base
|
|||
|
||||
#此代码功能:为原redmine中项目的树形结构按名称首字母排序,本系统项目非树形结构,且项目排序方式无按首字母排序,另该代码执行会使空数据库时创建项目时出异常故注释掉
|
||||
#after_save :update_position_under_parent, :if => Proc.new {|project| project.name_changed?}
|
||||
#ActiveModel::Dirty 这里有一个changed方法。对任何对象都可以用
|
||||
after_save :update_inherited_members, :if => Proc.new {|project| project.inherit_members_changed?}
|
||||
# 创建project之后默认创建一个board,之后的board去掉了board的概念
|
||||
after_create :create_board_sync,:expire_project_cache
|
||||
|
|
Loading…
Reference in New Issue