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.
Files changed (2) hide show
  1. data/lib/attached/attachment.rb +2 -2
  2. metadata +2 -2
@@ -68,7 +68,7 @@ module Attached
68
68
  @processors = @options[:processors]
69
69
  @processor = @options[:processor]
70
70
 
71
- @processors << @processor if @processor
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
- @processors.each do |processor|
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)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kevin Sylvestre