fclay 0.1.26 → 0.1.27
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.
- checksums.yaml +4 -4
- data/lib/fclay/attachment.rb +2 -2
- data/lib/fclay/version.rb +1 -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: baaa9dbad46b46df37f300115f088abeb6f44629
|
4
|
+
data.tar.gz: b12dae55d90b460b8294ffcc3ab89adf99ed58a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc1181760ab90083395d9fcc42c964e6cf6db9fe636efe94512727e3a61fa59559559ad338a9a7f805ee10ee56d80daf109c784c7c3f61b8bf8e3d761e51a79c
|
7
|
+
data.tar.gz: 51f466ab5f610b1a9ebb6ef8bdd8fbce726038bcec130aaa1729d78b5d2002fd4fd3aceb68705cb2031a516596b963c6a7085b89767393d99cddd5f34f6a9798
|
data/lib/fclay/attachment.rb
CHANGED
@@ -54,7 +54,7 @@ module Fclay
|
|
54
54
|
|
55
55
|
type = type.safe_constantize
|
56
56
|
return unless type
|
57
|
-
|
57
|
+
bucket_object = type.find_by_id(id)
|
58
58
|
return if !uploading_object || !uploading_object.need_upload
|
59
59
|
content_type = uploading_object.try(:content_type)
|
60
60
|
bucket = Fclay.remote_storage.bucket_object
|
@@ -169,7 +169,7 @@ module Fclay
|
|
169
169
|
`chmod 0755 #{local_file_path}`
|
170
170
|
|
171
171
|
delete_tmp_file
|
172
|
-
set_file_size
|
172
|
+
set_file_size self.class.fclay_options[:styles].try(:first)
|
173
173
|
self.file_location = 'local'
|
174
174
|
self.file_status = need_upload ? "processing" : "idle"
|
175
175
|
end
|
data/lib/fclay/version.rb
CHANGED