Class: Thredded::AtNotifierJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- Thredded::AtNotifierJob
- Defined in:
- app/jobs/thredded/at_notifier_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(post_type, post_id) ⇒ Object
5 6 7 8 9 |
# File 'app/jobs/thredded/at_notifier_job.rb', line 5 def perform(post_type, post_id) post = post_type.to_s.constantize.find(post_id) NotifyMentionedUsers.new(post).run end |