Retrospring/app/models/relationships/follow.rb

16 lines
279 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)
Notification::StartedFollowing
end
end