Sha256: e2f113417c817c3bae0e15a91e8f7dc8c9c8d7a354f31087a911c562ba6999f5
Contents?: true
Size: 406 Bytes
Versions: 16
Compression:
Stored size: 406 Bytes
Contents
# frozen_string_literal: true require 'power_converter' PowerConverter.define_conversion_for(:sipity_workflow_state) do |input, workflow| Deprecation.warn('PowerConverter is deprecated. Use `Sipity::WorkflowState(input, workflow)` instead') case input when Sipity::WorkflowState input when Symbol, String Sipity::WorkflowState.where(workflow_id: workflow.id, name: input).first end end
Version data entries
16 entries across 16 versions & 1 rubygems