mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 17:39:08 +01:00
13 lines
249 B
Ruby
13 lines
249 B
Ruby
class Relationships::Follow < Relationship
|
|
after_create do
|
|
Notification.notify target, self
|
|
end
|
|
|
|
before_destroy do
|
|
Notification.denotify target, self
|
|
end
|
|
|
|
def notification_type(*_args)
|
|
Notifications::StartedFollowing
|
|
end
|
|
end
|