avatars_for_rails 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avatars_for_rails/avatarable.rb +2 -0
- data/lib/avatars_for_rails/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: 121c97a3a4aafa171f7ad2d22e4ce00a341f737e
|
4
|
+
data.tar.gz: ee12a07c8c781423f251177f0f2da36ee7818c2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 439b6b2ad2fb492fe6e1782ec1f20bcf43e929e34a01311c8702660aa2ee2beef5a9b04d40525e3c8554280b9e6a292d95c29483b28ff8df473f26361c4aa9dd
|
7
|
+
data.tar.gz: 3eb1eaea45eed02d4f6ebc955edf133a9ef55117ebe8b6dd384ac35bf2b2a0f4fc6c49b00a270a1db509d2e4f8c4bbf3b9b93172c1c4c8431a06cfb25e5757f8
|
@@ -27,6 +27,8 @@ module AvatarsForRails
|
|
27
27
|
|
28
28
|
|
29
29
|
def check_avatar_aspect_ratio
|
30
|
+
return if logo.queued_for_write[:original].blank?
|
31
|
+
|
30
32
|
FileUtils.cp logo.queued_for_write[:original].path, AvatarsForRails.tmp_path
|
31
33
|
|
32
34
|
@avatar_tmp_basename = File.basename(logo.queued_for_write[:original].path)
|