Retrospring/app/models/relationships/follow.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
279 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)
Notification::StartedFollowing
2021-12-31 13:19:21 -08:00
end
end