Sha256: 49ccf8d224ecb44c9dc0fa7605f1f234b217442c119c488453694824d0d6dc0e
Contents?: true
Size: 416 Bytes
Versions: 7
Compression:
Stored size: 416 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:).call end end def call Invite.transaction do invite.destroy PagesCore::PubSub.publish(:destroy_invite, invite:) invite end end end end
Version data entries
7 entries across 7 versions & 1 rubygems