lib/carrierwave/processor.rb in carrierwave-processor-0.0.1.pre vs lib/carrierwave/processor.rb in carrierwave-processor-1.0

- old
+ new

@@ -15,9 +15,10 @@ end def self.conditions_merge *args args.compact! return nil if args.empty? + return args.first if args.length == 1 lambda do |uploader, options| args.inject(true) do |accum, condition| break false unless accum condition_result = if condition.respond_to?(:call) accum && condition.call(self, options) \ No newline at end of file