mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 23:49:08 +01:00
14 lines
249 B
Ruby
14 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
|