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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c85f3aa03a5e9abe28b5204bbacf8e4bc8425a3d96c9636555ef24acd3663261
4
- data.tar.gz: ca2e90ba2d9807ff48c90b726558c4e06bf07086e0748de4912db57b819900dc
3
+ metadata.gz: 14b1c00c237acdbbaeb9e9378e4e522fd72e63fe61727293afb1b0206b88b578
4
+ data.tar.gz: 19b48cfe505165994efb052a8ef352168659b3377a18b243fad01a46b453be6f
5
5
  SHA512:
6
- metadata.gz: f7a7594e3fb000baa12dbcc65a39e1dcac6c090ce4fc2e2f3de567c21a2367c0d1ac6b3341a8482fd8fc8a77557c8df965b53d793f256afa870e36b3af07fb05
7
- data.tar.gz: a17dfbdf42a518d932357159907991aaff1190b4f2fe864693379f54f9b415bcaa1989c795b642fe65fad5a4edb1aaf90b3db959add12ef3923db045e9a7af1d
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.serialize(value)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-rdb-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Lobanov (RedSoft)