discourse/app/jobs/regular/post_alert.rb

12 lines
162 B
Ruby
Raw Normal View History

2015-04-21 01:34:57 +08:00
module Jobs
class PostAlert < Jobs::Base
def execute(args)
post = Post.find(args[:post_id])
PostAlerter.post_created(post)
end
end
end