photofy 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/photofy.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a2ade0b25c273aef70885b568e4d3c84ed4bc65
|
4
|
+
data.tar.gz: 1dea40196a4de2d6d5f6aa5ec00ced5136d71c86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1456271b769da5ee9741dc5560e286129962ef1ae0e6b1a2f52211260a4178686eccfc85ff8dc30674ca031ed6ff97302a57403492e1c2312b41d86cbccb09dd
|
7
|
+
data.tar.gz: e07e56051800bea388710266b15f732b27580308b1d7bdf4eab0eae3b3d9b5b786872038cb0b5923ead3ae829bfb0a408d4b6e49850e7d389f587bf57a9fa6d6
|
data/lib/photofy.rb
CHANGED
@@ -128,7 +128,9 @@ module Photofy
|
|
128
128
|
send('initialize_photo_buffers')
|
129
129
|
|
130
130
|
#Loading content from parent_photo_field if specified
|
131
|
-
|
131
|
+
unless parent_photo_field.nil?
|
132
|
+
send("#{photo_field}=", File.open(send("#{parent_photo_field}_path"))) if File.exist?(send("#{parent_photo_field}_path"))
|
133
|
+
end
|
132
134
|
|
133
135
|
unless @photo_file_buffer[photo_field].nil?
|
134
136
|
File.delete(send("#{photo_field}_path")) if File.exist?(send("#{photo_field}_path")) #Clearing any existing existence
|