Class: SpreeCmCommissioner::ReleaseInventoryItemNotificationSender
- Inherits:
-
BaseInteractor
- Object
- BaseInteractor
- SpreeCmCommissioner::ReleaseInventoryItemNotificationSender
- Defined in:
- app/interactors/spree_cm_commissioner/release_inventory_item_notification_sender.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'app/interactors/spree_cm_commissioner/release_inventory_item_notification_sender.rb', line 3 def call order = context.notificable return if order.user.blank? SpreeCmCommissioner::OrderGeneralNotification.with( notificable: order, title: title, message: (order) ).deliver_later(order.user) end |