Module: CarrierWave::Uploader::Callbacks
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/carrierwave/uploader/callbacks.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#with_callbacks(kind, *args) ⇒ Object
13 14 15 16 17 |
# File 'lib/carrierwave/uploader/callbacks.rb', line 13 def with_callbacks(kind, *args) self.class._before_callbacks[kind].each { |c| send c, *args } yield self.class._after_callbacks[kind].each { |c| send c, *args } end |