attached 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -139,16 +139,16 @@ module Attached
139
139
  #
140
140
  # @object.avatar.save
141
141
 
142
- def save
143
- self.purge.each do |path|
144
- self.storage.destroy(path)
145
- end
146
-
142
+ def save
147
143
  self.queue.each do |style, file|
148
144
  path = self.path(style)
149
145
  self.storage.save(file, path) if file and path
150
146
  end
151
147
 
148
+ self.purge.each do |path|
149
+ self.storage.destroy(path)
150
+ end
151
+
152
152
  @purge = []
153
153
  @queue = {}
154
154
  end
@@ -1,3 +1,3 @@
1
1
  module Attached
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: attached
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.6
5
+ version: 0.2.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kevin Sylvestre
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-02-20 00:00:00 -05:00
13
+ date: 2011-02-21 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency