Class: Mention

Inherits:
ApplicationRecord show all
Defined in:
app/models/mention.rb

Overview

Copyright © 2010-2011, Diaspora Inc. This file is

licensed under the Affero General Public License version 3 or later.  See
the COPYRIGHT file.

Instance Method Summary collapse

Instance Method Details

#delete_notificationObject


17
18
19
# File 'app/models/mention.rb', line 17

def delete_notification
  Notification.where(target_type: self.class.name, target_id: id).destroy_all
end