Class: TentD::Notifications::NotifyWorker
- Inherits:
-
Object
- Object
- TentD::Notifications::NotifyWorker
- Includes:
- Sidekiq::Worker
- Defined in:
- lib/tentd/notifications/sidekiq.rb
Instance Method Summary collapse
Instance Method Details
#perform(msg) ⇒ Object
21 22 23 |
# File 'lib/tentd/notifications/sidekiq.rb', line 21 def perform(msg) Model::NotificationSubscription.first(:id => msg['subscription_id']).notify_about(msg['post_id']) end |