sql_enum 0.1.7 → 0.1.8

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
  SHA1:
3
- metadata.gz: 800771c9f66e38efd82466bb42bf3fe69cdeac30
4
- data.tar.gz: c51fbf911e5d86a28da0579e49a47421bef5807a
3
+ metadata.gz: a908c2c9d2f5568e5f8a65bc199681bf0933c4d2
4
+ data.tar.gz: 55110892ba1e0f5975ad6125520c01bb94a18502
5
5
  SHA512:
6
- metadata.gz: 3413183959640b5d695387fd010af9e1f04dc2ef8d58308fa6c955c93755bf0137a6b1453668d1de5b2c066a4ea352080651365e06173d47a0a4c3cf2e8ea6e2
7
- data.tar.gz: 8cee03e3b00830174d6c119041ec621afe5c94834b452d1ff479ffb452d3bae3ad9217676e1bf89c527e01a34178f674e59b5c844dac1cd80c6fedb6f244be4e
6
+ metadata.gz: d2e15edff4caabb17433f1c0ff63c906f422f621fe2506c1774e158b713d448c55d72116494d85b7449f5759109d4ae48561e25b9200a1f6fc65be8278e14d97
7
+ data.tar.gz: f23e389b171e3ca6809643a7ad05e6346d15281917253e76ddf1bedf80fa645ccd88f0cc47b8a056b8c3aa4ebfc0745a13028b5b15f0c7822612963df4ae6f5a
@@ -24,7 +24,7 @@ module ActiveRecord
24
24
  end
25
25
 
26
26
  def serialize(value)
27
- value.to_s
27
+ value ? value.to_s : nil
28
28
  end
29
29
 
30
30
  def valid?(value)
@@ -1,3 +1,3 @@
1
1
  module SqlEnum
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sql_enum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fletcher Fowler