Sha256: 963c8d160cde0dfe5465dc2f3ff4aa09a28850f425dd7bc04c6ec450d7c2ba0b

Contents?: true

Size: 475 Bytes

Versions: 16

Compression:

Stored size: 475 Bytes

Contents

# frozen_string_literal: true
PowerConverter.define_conversion_for(:sipity_action) do |input, scope|
  Deprecation.warn('PowerConverter is deprecated. Use `Sipity::WorkflowAction(input, workflow)` instead')
  workflow_id = PowerConverter.convert_to_sipity_workflow_id(scope)
  case input
  when Sipity::WorkflowAction
    input if input.workflow_id == workflow_id
  when String, Symbol
    Sipity::WorkflowAction.find_by(workflow_id: workflow_id, name: input.to_s)
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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