Sha256: 43f4307217894ea35ec54ba749addaea2b2799a162950212d9eee0de4e7ae02c
Contents?: true
Size: 484 Bytes
Versions: 34
Compression:
Stored size: 484 Bytes
Contents
# frozen_string_literal: true module Decidim module Verifications # A command to Destroy the Authorization of a user. class DestroyUserAuthorization < Rectify::Command def initialize(authorization) @authorization = authorization end def call return broadcast(:invalid) unless authorization authorization.destroy! broadcast(:ok, authorization) end private attr_reader :authorization end end end
Version data entries
34 entries across 34 versions & 1 rubygems