lib/carrierwave/processor/dsl.rb in carrierwave-processor-1.0 vs lib/carrierwave/processor/dsl.rb in carrierwave-processor-1.0.1
- old
+ new
@@ -19,12 +19,12 @@
end
end
def find_carrierwave_processor name
if self.kind_of? CarrierWave::Processor::Node
- self.processors[name.to_sym]
+ self.processors && self.processors[name.to_sym]
else
- CarrierWave::Processor.processors[name.to_sym]
+ CarrierWave::Processor.processors && CarrierWave::Processor.processors[name.to_sym]
end
end
end
end
end
\ No newline at end of file