Module: CarrierWave::Uploader::Callbacks::ClassMethods
- Defined in:
- lib/carrierwave/uploader/callbacks.rb
Instance Method Summary collapse
Instance Method Details
#after(kind, callback) ⇒ Object
25 26 27 28 |
# File 'lib/carrierwave/uploader/callbacks.rb', line 25 def after(kind, callback) self._after_callbacks = self._after_callbacks. merge kind => _after_callbacks[kind] + [callback] end |
#before(kind, callback) ⇒ Object
20 21 22 23 |
# File 'lib/carrierwave/uploader/callbacks.rb', line 20 def before(kind, callback) self._before_callbacks = self._before_callbacks. merge kind => _before_callbacks[kind] + [callback] end |