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