Sha256: e67c61b42453b105a3b3f2f90e3782aefd5fd4b584bb88a07365f08aa18eac96

Contents?: true

Size: 329 Bytes

Versions: 16

Compression:

Stored size: 329 Bytes

Contents

# frozen_string_literal: true
PowerConverter.define_conversion_for(:sipity_action_name) do |input|
  Deprecation.warn('PowerConverter is deprecated. Use `Sipity::WorkflowAction.name_for(input)` instead')
  case input
  when String, Symbol
    input.to_s.sub(/[\?\!]\Z/, '')
  when Sipity::WorkflowAction
    input.name
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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