Sha256: b4e14ea01c375c3a87f09405e9ce1730119c3b25b83a414f5f14979ce8b57f48

Contents?: true

Size: 320 Bytes

Versions: 16

Compression:

Stored size: 320 Bytes

Contents

# frozen_string_literal: true
PowerConverter.define_conversion_for(:sipity_role) do |input|
  Deprecation.warn('PowerConverter is deprecated. Use `Sipity::WorkflowAction.name_for(input)` instead')
  case input
  when Sipity::Role
    input
  when String, Symbol
    Sipity::Role.find_or_create_by(name: input)
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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