activerecord-rdb-adapter 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_record/connection_adapters/rdb/quoting.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14b1c00c237acdbbaeb9e9378e4e522fd72e63fe61727293afb1b0206b88b578
|
4
|
+
data.tar.gz: 19b48cfe505165994efb052a8ef352168659b3377a18b243fad01a46b453be6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8efc99a7b159172f1345b88dc00498888c91554b0cd65926aa996a794e9e661c66a87d19d0b77cc9b23ce8235946ead18ce3586b89f0da555b57317b31a0367f
|
7
|
+
data.tar.gz: 0642f4480721e78953445e3dcdacbcd091d6255905d9f25fa14f5b8b871e9a0b4d63d2f552252afc46d5d4a6961de30551e07f54ea8db9bd3f57f8cd1ba489f8
|
@@ -52,7 +52,11 @@ module ActiveRecord
|
|
52
52
|
def type_cast_from_column(column, value) # :nodoc:
|
53
53
|
if column
|
54
54
|
type = column.type || lookup_cast_type_from_column(column)
|
55
|
-
type.
|
55
|
+
if type.is_a?(ActiveRecord::Type::Serialized)
|
56
|
+
value
|
57
|
+
else
|
58
|
+
type.serialize(value)
|
59
|
+
end
|
56
60
|
else
|
57
61
|
value
|
58
62
|
end
|