删除帖子也要更新动态
This commit is contained in:
parent
4aeac1bd64
commit
489f62edb7
|
@ -6,6 +6,7 @@ module Trustie
|
||||||
def self.included(base)
|
def self.included(base)
|
||||||
base.class_eval{
|
base.class_eval{
|
||||||
after_create :clear_course_events
|
after_create :clear_course_events
|
||||||
|
after_destroy :clear_course_events
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue