Sha256: 91c29b4508400342746f318bf7390bc574d49e5a5b5e019d1c9a91221846dc41
Contents?: true
Size: 430 Bytes
Versions: 21
Compression:
Stored size: 430 Bytes
Contents
# frozen_string_literal: true module PagesCore class DestroyInviteService attr_reader :invite def initialize(invite:) @invite = invite end class << self def call(invite:) new(invite: invite).call end end def call Invite.transaction do invite.destroy PagesCore::PubSub.publish(:destroy_invite, invite: invite) invite end end end end
Version data entries
21 entries across 21 versions & 1 rubygems