lib/carrierwave-delay/model.rb in carrierwave-delay-0.1.0 vs lib/carrierwave-delay/model.rb in carrierwave-delay-0.1.1

- old
+ new

@@ -18,16 +18,18 @@ :default end def carrierwave_delay_priority 20 end - + end def recreate_delayed_versions! self.class.carrierwave_delay_columns.each do |column| - send(column).is_processing_delayed = true - send(column).recreate_versions! + unless self.send(column).nil? + send(column).is_processing_delayed = true + send(column).recreate_versions! + end end end private