attached 0.2.6 → 0.2.7
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 +5 -5
- data/lib/attached/version.rb +1 -1
- metadata +2 -2
data/lib/attached/attachment.rb
CHANGED
|
@@ -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
|
data/lib/attached/version.rb
CHANGED
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: attached
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.2.
|
|
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-
|
|
13
|
+
date: 2011-02-21 00:00:00 -05:00
|
|
14
14
|
default_executable:
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|