lib/backgrounder/orm/base.rb in carrierwave_backgrounder-0.2.0 vs lib/backgrounder/orm/base.rb in carrierwave_backgrounder-0.2.1

- old
+ new

@@ -98,10 +98,10 @@ def _define_shared_backgrounder_methods(mod, column, worker) mod.class_eval <<-RUBY, __FILE__, __LINE__ + 1 def #{column}_updated?; true; end def enqueue_#{column}_background_job? - !process_#{column}_upload && #{column}_updated? + !remove_#{column}? && !process_#{column}_upload && #{column}_updated? end def enqueue_#{column}_background_job CarrierWave::Backgrounder.enqueue_for_backend(#{worker}, self.class.name, id.to_s, #{column}.mounted_as) end