9 lines
220 B
Ruby
9 lines
220 B
Ruby
|
class MemoObserver < ActiveRecord::Observer
|
||
|
def after_create(memo)
|
||
|
|
||
|
thread1=Thread.new do
|
||
|
Mailer.forum_message_added(memo).deliver if Setting.notified_events.include?('forum_message_added')
|
||
|
end
|
||
|
end
|
||
|
end
|