lib/bulldog/attachment/base.rb in bulldog-0.2.2 vs lib/bulldog/attachment/base.rb in bulldog-0.2.3

- old
+ new

@@ -25,10 +25,10 @@ if (types = event.attachment_types) next unless types.include?(type) end processor_type = event.processor_type || default_processor_type processor_class = Processor.const_get(processor_type.to_s.camelize) - processor = processor_class.new(self, stream.path) + processor = processor_class.new(self, options[:input] || stream.path) styles = reflection.styles names = options[:styles] || event.styles and styles = reflection.styles.slice(*names) processor.process(styles, options, &event.callback) end