poll after create

This commit is contained in:
huang 2015-08-21 15:55:17 +08:00
parent 5594295c9e
commit 604fe40f84
1 changed files with 1 additions and 2 deletions

View File

@ -13,8 +13,7 @@ class Poll < ActiveRecord::Base
after_create :act_as_activity, :act_as_course_activity
# 课程消息
has_many :course_messages, :class_name =>'CourseMessage', :as => :course_message, :dependent => :destroy
after_create :act_as_activity, :act_as_course_activity
after_save :act_as_course_message
after_save :act_as_course_message, :act_as_activity, :act_as_course_activity
acts_as_event :title => Proc.new {|o| "#{l(:label_course_poll)}: #{o.polls_name}" },
:description => :polls_description,