Module: AwesomePrintCarrierWaveUploader

Extended by:
ActiveSupport::Concern
Defined in:
lib/awesome_print_carrier_wave_uploader.rb,
lib/awesome_print_carrier_wave_uploader/version.rb

Constant Summary collapse

VERSION =
"0.0.1"

Instance Method Summary collapse

Instance Method Details

#cast_with_carrierwave_uploader(object, type) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/awesome_print_carrier_wave_uploader.rb', line 12

def cast_with_carrierwave_uploader(object, type)
  if defined?(::CarrierWave) && object.is_a?(::CarrierWave::Uploader::Base)
    :carrierwave_uploader_instance
  else
    cast_without_carrierwave_uploader(object, type)
  end
end