retrospring/app/models/relationships/follow.rb
2022-01-23 16:48:53 +01:00

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