carrierwave-serializable 0.0.3 → 0.0.4
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85af84b7e090dc29a19a30738b95aec95316b96a
|
4
|
+
data.tar.gz: cc4df2426c9db2824ec349d6ef2653dbdcb94721
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d7312e8652486a614abad5675d1845a37d9180cb9ede08812d26aff0ec5c4c1636eefd9e7f1a00f1615f57af73c062f6a9c5a48291140c6bdf34f3518163267
|
7
|
+
data.tar.gz: 1bdf2d6bc8c7400e1c78e1af0babf2045dfced058d1eab8a8098718456c04bd37ad8e8176ff44db32ff75c5ee600ebd4b2a1074d7771e69102720d827bc765e0
|
@@ -10,9 +10,25 @@ module CarrierWave
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def serialized_uploader?(column)
|
13
|
-
|
13
|
+
attribute_name = serialized_uploaders[column].to_s
|
14
|
+
serialized_uploaders.key?(column) && (serialized_attribute?(attribute_name) ||
|
15
|
+
hstore_attribute?(attribute_name) ||
|
16
|
+
json_attribute?(attribute_name))
|
17
|
+
|
18
|
+
end
|
19
|
+
|
20
|
+
def serialized_attribute?(attribute)
|
21
|
+
serialized_attributes.key?(attribute)
|
22
|
+
end
|
23
|
+
|
24
|
+
def hstore_attribute?(attribute)
|
25
|
+
columns_hash[attribute.to_s].type == :hstore
|
26
|
+
end
|
27
|
+
|
28
|
+
def json_attribute?(attribute)
|
29
|
+
columns_hash[attribute.to_s].type == :json
|
14
30
|
end
|
15
|
-
|
31
|
+
|
16
32
|
##
|
17
33
|
# See +CarrierWave::Mount#mount_uploader+ for documentation
|
18
34
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carrierwave-serializable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tima Maslyuchenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: carrierwave
|