boards created frequently, css file file EOF.
This commit is contained in:
parent
6379dd704a
commit
164ec645ee
|
@ -39,7 +39,7 @@ class Course < ActiveRecord::Base
|
||||||
validates_format_of :name,:with =>/^[a-zA-Z0-9_\u4e00-\u9fa5]+$/
|
validates_format_of :name,:with =>/^[a-zA-Z0-9_\u4e00-\u9fa5]+$/
|
||||||
|
|
||||||
before_save :self_validate
|
before_save :self_validate
|
||||||
after_save :create_board_sync
|
after_create :create_board_sync
|
||||||
before_destroy :delete_all_members
|
before_destroy :delete_all_members
|
||||||
|
|
||||||
safe_attributes 'extra',
|
safe_attributes 'extra',
|
||||||
|
|
|
@ -127,7 +127,7 @@ class Project < ActiveRecord::Base
|
||||||
after_save :update_position_under_parent, :if => Proc.new {|project| project.name_changed?}
|
after_save :update_position_under_parent, :if => Proc.new {|project| project.name_changed?}
|
||||||
after_save :update_inherited_members, :if => Proc.new {|project| project.inherit_members_changed?}
|
after_save :update_inherited_members, :if => Proc.new {|project| project.inherit_members_changed?}
|
||||||
# 创建project之后默认创建一个board,之后的board去掉了board的概念
|
# 创建project之后默认创建一个board,之后的board去掉了board的概念
|
||||||
after_save :create_board_sync
|
after_create :create_board_sync
|
||||||
before_destroy :delete_all_members
|
before_destroy :delete_all_members
|
||||||
def remove_references_before_destroy
|
def remove_references_before_destroy
|
||||||
return if self.id.nil?
|
return if self.id.nil?
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue