poll after create
This commit is contained in:
parent
5594295c9e
commit
604fe40f84
|
@ -13,8 +13,7 @@ class Poll < ActiveRecord::Base
|
||||||
after_create :act_as_activity, :act_as_course_activity
|
after_create :act_as_activity, :act_as_course_activity
|
||||||
# 课程消息
|
# 课程消息
|
||||||
has_many :course_messages, :class_name =>'CourseMessage', :as => :course_message, :dependent => :destroy
|
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, :act_as_activity, :act_as_course_activity
|
||||||
after_save :act_as_course_message
|
|
||||||
|
|
||||||
acts_as_event :title => Proc.new {|o| "#{l(:label_course_poll)}: #{o.polls_name}" },
|
acts_as_event :title => Proc.new {|o| "#{l(:label_course_poll)}: #{o.polls_name}" },
|
||||||
:description => :polls_description,
|
:description => :polls_description,
|
||||||
|
|
Loading…
Reference in New Issue