ish_models 0.0.33.36 → 0.0.33.37
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/photo.rb +3 -2
- 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: df419d1e60b948cbbae92cd29f604836b056b6fa
|
4
|
+
data.tar.gz: aca537097bceb483a5d067638873a43aa76b3382
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 565a24d11f3980803458ee022bce63f59b79fee75e2c4b39cf6853e80b6f94fdcb0a85a3f82291e462e1e4c119ff8953578716bb06f1860bc7bf2d8bd4ee27fa
|
7
|
+
data.tar.gz: c4a1368e86cce3d3ff050f0228050c355f818dd5d3b59c2cc5f373adc6e2433dc69253130afc728813e5086243df5d5d238027bbfed1d04a91f20351630df5df
|
data/lib/photo.rb
CHANGED
@@ -42,13 +42,14 @@ class Photo
|
|
42
42
|
:storage => :s3,
|
43
43
|
:s3_credentials => ::S3_CREDENTIALS,
|
44
44
|
:path => "photos/:style/:id/:filename",
|
45
|
-
:s3_protocol => '
|
45
|
+
:s3_protocol => 'https',
|
46
|
+
:validate_media_type => false
|
46
47
|
|
47
48
|
def self.n_per_manager_gallery
|
48
49
|
25
|
49
50
|
end
|
50
51
|
|
51
|
-
validates_attachment_content_type :photo, :content_type => ["image/jpg", "image/jpeg", "image/png", "image/gif"]
|
52
|
+
validates_attachment_content_type :photo, :content_type => ["image/jpg", "image/jpeg", "image/png", "image/gif", 'application/octet-stream' ]
|
52
53
|
|
53
54
|
end
|
54
55
|
|