Sha256: 87d7442dee0d7f1fdc8f60e5298a50343d082b8a4fac28fb6bee79a3815d67b4

Contents?: true

Size: 309 Bytes

Versions: 16

Compression:

Stored size: 309 Bytes

Contents

# frozen_string_literal: true
PowerConverter.define_conversion_for(:polymorphic_type) do |input|
  Deprecation.warn('PowerConverter is deprecated. Use `.base_class` instead')
  if input.respond_to?(:base_class)
    input.base_class
  elsif input.is_a?(ActiveRecord::Base)
    input.class.base_class
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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