Module: CarrierWave::Uploader::Processing

Extended by:
ActiveSupport::Concern
Includes:
Callbacks
Included in:
Base
Defined in:
lib/carrierwave/uploader/processing.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Methods included from Callbacks

#with_callbacks

Instance Method Details

#process!(new_file = nil) ⇒ Object

Apply all process callbacks added through CarrierWave.process



74
75
76
77
78
79
80
# File 'lib/carrierwave/uploader/processing.rb', line 74

def process!(new_file=nil)
  if enable_processing
    self.class.processors.each do |method, args|
      self.send(method, *args)
    end
  end
end