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

Version Path
hyrax-3.6.0 app/conversions/power_converters/sipity_workflow_state.rb
hyrax-3.5.0 app/conversions/power_converters/sipity_workflow_state.rb
hyrax-4.0.0.beta2 app/conversions/power_converters/sipity_workflow_state.rb
hyrax-3.4.2 app/conversions/power_converters/sipity_workflow_state.rb
hyrax-4.0.0.beta1 app/conversions/power_converters/sipity_workflow_state.rb
hyrax-3.4.1 app/conversions/power_converters/sipity_workflow_state.rb
hyrax-3.4.0 app/conversions/power_converters/sipity_workflow_state.rb
hyrax-3.3.0 app/conversions/power_converters/sipity_workflow_state.rb
hyrax-3.2.0 app/conversions/power_converters/sipity_workflow_state.rb
hyrax-3.1.0 app/conversions/power_converters/sipity_workflow_state.rb
hyrax-3.0.2 app/conversions/power_converters/sipity_workflow_state.rb
hyrax-3.0.1 app/conversions/power_converters/sipity_workflow_state.rb
hyrax-3.0.0 app/conversions/power_converters/sipity_workflow_state.rb
hyrax-3.0.0.pre.rc4 app/conversions/power_converters/sipity_workflow_state.rb
hyrax-3.0.0.pre.rc3 app/conversions/power_converters/sipity_workflow_state.rb
hyrax-3.0.0.pre.rc2 app/conversions/power_converters/sipity_workflow_state.rb