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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/photo.rb +3 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5cfc1e4090596da93054cc69454226b4ff28cc8e
4
- data.tar.gz: 9cb30f3e9549f70981db9e4977f09abfaec5851a
3
+ metadata.gz: df419d1e60b948cbbae92cd29f604836b056b6fa
4
+ data.tar.gz: aca537097bceb483a5d067638873a43aa76b3382
5
5
  SHA512:
6
- metadata.gz: eddcf771913c4dc46d1350117971e7689030e255ff75847c50d975658ca5d3b30b76e03ca74eb08e6fdda11553ed9386f57c93e9299c5825fcfb1bf78c369e60
7
- data.tar.gz: f514f36a36c303bd142b2a43cee9be1233ab14578a5e8d6918d2fbe756017a1d12a54eac3563dc0dc65a657a129468bca2d225a0f33dcb8868820418a560619a
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 => 'http'
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33.36
4
+ version: 0.0.33.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox