ksk 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/actives/asset.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ba89b85e998d5a247ec3430b491f4101781cf6e
|
4
|
+
data.tar.gz: 7186043f16771af0c6ae982d1ec746859b912790
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5460018dc72567d5d246f8fad5e2c5a51768a5799d89620c9f2d4a403ff64b5ffd6491526542d2c3194a8915d84f6400792cea692c201b14aab45758f1342ca1
|
7
|
+
data.tar.gz: 4efbcb388ba61312e55efe1c59e4f3abfd270150e6044242c77ca8323367ec0b6bdff4e56445a408e0d8bc6248d388a2ae7038e18d3cfc04e983741945a3e6b7
|
data/lib/actives/asset.rb
CHANGED
@@ -15,8 +15,8 @@ module Ksk
|
|
15
15
|
after_initialize :resize_attr_accessors
|
16
16
|
before_save :crop_thumbs, if: :cropping?
|
17
17
|
|
18
|
-
#validates_attachment :file, :content_type => { :content_type => IMGTYPE }
|
19
18
|
IMGTYPE = ['image/jpeg', 'image/pjpeg', 'image/jpg', 'image/png', 'image/tif', 'image/gif']
|
19
|
+
validates_attachment_content_type :file, :content_type => /.*/
|
20
20
|
|
21
21
|
scope :only_images, -> {where(file_content_type: IMGTYPE)}
|
22
22
|
scope :first_image, -> {only_images.limit(1)}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ksk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Pawlik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bhf
|