This commit is contained in:
yuanke 2016-10-26 15:07:32 +08:00
parent 3529bb6cf1
commit a882a919e5
1 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ class News < ActiveRecord::Base
:author_key => :author_id
acts_as_watchable
after_create :act_as_forge_activity, :act_as_course_activity, :add_author_as_watcher, :send_mail, :add_news_count, :act_as_student_score, :act_as_system_message, :delay_news_send,:delay_news_wechat_send
after_create :act_as_forge_activity, :act_as_course_activity, :add_author_as_watcher, :send_mail, :add_news_count, :act_as_student_score, :act_as_system_message,:delay_news_wechat_send, :delay_news_send
after_update :update_activity
after_destroy :delete_kindeditor_assets, :decrease_news_count, :delete_org_activities, :down_course_score
@ -208,7 +208,7 @@ class News < ActiveRecord::Base
def delay_news_send
if self.course
#self.delay.contain_news_message
self.delay.contain_news_message
end
end