Retrospring/app/models/relationships/follow.rb

16 lines
280 B
Ruby
Raw Normal View History

2022-01-16 09:51:27 -08:00
# frozen_string_literal: true
2021-12-31 13:19:21 -08: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