lib/carrierwave/mount.rb
##
# === Returns
#
# [Hash{Symbol => CarrierWave}] what uploaders are mounted on which columns
#
Returns
[Hash{Symbol => CarrierWave}] what uploaders are mounted on which columns
Returns [ Hash { Symbol = > CarrierWave } ] what uploaders are mounted on which columns
def build_uploader(uploader, &block)
      return uploader if uploader && !block_given?
      uploader = Class.new(uploader || CarrierWave::Uploader::Base)
      const_set("Uploader#{uploader.object_id}".tr('-', '_'), uploader)
      if block_given?
        uploader.class_eval(&block)
        uploader.recursively_apply_block_to_versions(&block)
      end
      uploader
    end
def build_uploader ( uploader , & block ) return uploader if uploader && ! block_given? uploader = Class . new ( uploader || CarrierWave :: Uploader :: Base ) const_set ( "Uploader#{uploader.object_id}" . tr ( '-' , '_' ) , uploader ) if block_given? uploader . class_eval ( & block ) uploader . recursively_apply_block_to_versions ( & block ) end uploader end
Returns
[Hash{Symbol => CarrierWave}] what uploaders are mounted on which columns
Returns [ Hash { Symbol = > CarrierWave } ] what uploaders are mounted on which columns
uploader
block