corm 0.0.7 → 0.0.8

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.
Files changed (2) hide show
  1. data/lib/corm/model.rb +1 -1
  2. metadata +2 -2
@@ -33,7 +33,7 @@ module Corm
33
33
  type = self.class.fields[name.to_s.downcase].to_s.downcase
34
34
  value = record[name.to_s.downcase]
35
35
  if type == 'json'
36
- value.nil? ? '' : MultiJson.decode(value)
36
+ value.nil? ? nil : MultiJson.decode(value)
37
37
  elsif type.start_with?('list') && type['json']
38
38
  value.nil? ? [] : value.map{|s| MultiJson.decode s}
39
39
  elsif type.start_with?('list')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: corm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-24 00:00:00.000000000 Z
12
+ date: 2015-03-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cassandra-driver