retrospring/app/models/relationships/follow.rb

14 lines
249 B
Ruby
Raw Normal View History

2021-12-31 22:19:21 +01:00
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