mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 18:19:52 +01:00
15 lines
280 B
Ruby
15 lines
280 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|