Sha256: 456e2ebb493691d15fb2b03fff253974e5e2d4528f1aa2c8483d98c121aee2d4

Contents?: true

Size: 194 Bytes

Versions: 71

Compression:

Stored size: 194 Bytes

Contents

PowerConverter.define_conversion_for(:sipity_action_name) do |input|
  case input
  when String, Symbol
    input.to_s.sub(/[\?\!]\Z/, '')
  when Sipity::WorkflowAction
    input.name
  end
end

Version data entries

71 entries across 71 versions & 3 rubygems

Version Path
hyrax-2.9.6 app/conversions/power_converters/sipity_action_name.rb
hyrax-2.9.5 app/conversions/power_converters/sipity_action_name.rb
hyrax-2.9.4 app/conversions/power_converters/sipity_action_name.rb
hyrax-2.9.3 app/conversions/power_converters/sipity_action_name.rb
hyrax-2.9.2 app/conversions/power_converters/sipity_action_name.rb
hyrax-2.9.1 app/conversions/power_converters/sipity_action_name.rb
hyrax-2.9.0 app/conversions/power_converters/sipity_action_name.rb
hyrax-2.8.0 app/conversions/power_converters/sipity_action_name.rb
hyrax-2.7.2 app/conversions/power_converters/sipity_action_name.rb
hyrax-2.7.1 app/conversions/power_converters/sipity_action_name.rb
hyrax-2.7.0 app/conversions/power_converters/sipity_action_name.rb
hyrax-2.6.0 app/conversions/power_converters/sipity_action_name.rb
hyrax-3.0.0.pre.rc1 app/conversions/power_converters/sipity_action_name.rb
hyrax-3.0.0.pre.beta3 app/conversions/power_converters/sipity_action_name.rb
hyrax-2.5.1 app/conversions/power_converters/sipity_action_name.rb
hyrax-2.5.0 app/conversions/power_converters/sipity_action_name.rb
hyrax-3.0.0.pre.beta2 app/conversions/power_converters/sipity_action_name.rb
hyrax-2.4.1 app/conversions/power_converters/sipity_action_name.rb
hyrax-3.0.0.pre.beta1 app/conversions/power_converters/sipity_action_name.rb
hyrax-2.4.0 app/conversions/power_converters/sipity_action_name.rb