foodsoft/plugins/messages/app/workers/message_notifier.rb

9 lines
176 B
Ruby
Raw Normal View History

2014-03-07 09:51:24 +01:00
class MessageNotifier < UserNotifier
@queue = :foodsoft_notifier
def self.message_deliver(args)
message_id = args.first
Message.find(message_id).deliver
end
end