attached 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/attached/attachment.rb +2 -2
- metadata +2 -2
data/lib/attached/attachment.rb
CHANGED
@@ -68,7 +68,7 @@ module Attached
|
|
68
68
|
@processors = @options[:processors]
|
69
69
|
@processor = @options[:processor]
|
70
70
|
|
71
|
-
@processors
|
71
|
+
@processors = @processors + [@processor] if @processor
|
72
72
|
end
|
73
73
|
|
74
74
|
|
@@ -244,7 +244,7 @@ module Attached
|
|
244
244
|
# self.process
|
245
245
|
|
246
246
|
def process
|
247
|
-
|
247
|
+
self.processors.each do |processor|
|
248
248
|
self.styles.each do |style, options|
|
249
249
|
case processor
|
250
250
|
when :image then self.queue[style] = Attached::Image.process(self.queue[style] || self.file, options, self)
|