Sha256: ecccbc1b43273c768480a0dfc9466bc4ea16162e1a5bf848094ffe305c450397
Contents?: true
Size: 470 Bytes
Versions: 7
Compression:
Stored size: 470 Bytes
Contents
# frozen_string_literal: true module Macros class Model # Destroy step for removing object assigned in ctx['model'] # @example # step Macros::Model::Destroy() class Destroy < Macros::Base # Destroys a given model # @param _ctx [Trailblazer::Skill] context accumulator # @param model [Object] object that we want to destroy def call(_ctx, model:, **) model.destroy model.destroyed? end end end end
Version data entries
7 entries across 7 versions & 1 rubygems