lib/attached/attachment.rb in attached-0.1.2 vs lib/attached/attachment.rb in attached-0.1.3
- old
+ new
@@ -66,11 +66,11 @@
@medium = @options[:medium]
@credentials = @options[:credentials]
@processors = @options[:processors]
@processor = @options[:processor]
- @processors << @processor if @processor
+ @processors = @processors + [@processor] if @processor
end
# Check if an attachment has been modified.
#
@@ -242,10 +242,10 @@
# Usage:
#
# self.process
def process
- @processors.each do |processor|
+ self.processors.each do |processor|
self.styles.each do |style, options|
case processor
when :image then self.queue[style] = Attached::Image.process(self.queue[style] || self.file, options, self)
end
end
\ No newline at end of file