diaspora/app/models/notifications/private_message.rb
2011-03-08 10:53:49 -08:00

15 lines
374 B
Ruby

class Notifications::PrivateMessage < Notification
def mail_job
Job::MailPrivateMessage
end
def translation_key
'private_message'
end
def self.make_notification(recipient, target, actor, notification_type)
n = notification_type.new(:target => target,
:recipient_id => recipient.id)
n.actors << actor
n
end
end