Signed-off-by: alan <547533434@qq.com>
This commit is contained in:
parent
c61bad4933
commit
1166a1463b
|
@ -5,7 +5,7 @@ class Forum < ActiveRecord::Base
|
|||
has_many :memos, :dependent => :destroy, conditions: "parent_id IS NULL"
|
||||
belongs_to :creator, :class_name => "User", :foreign_key => 'creator_id'
|
||||
|
||||
after_create :expire_forum_cache, :send_email
|
||||
after_create :expire_forum_cache
|
||||
after_update :expire_forum_cache
|
||||
before_destroy :expire_forum_cache
|
||||
safe_attributes 'name',
|
||||
|
|
Loading…
Reference in New Issue