protobuf-activerecord 1.2.1 → 1.2.2

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.
@@ -18,6 +18,8 @@ module Protoable
18
18
  end
19
19
 
20
20
  def _protobuf_convert_attributes_to_fields(key, value)
21
+ return value if value.nil?
22
+
21
23
  value = case
22
24
  when _protobuf_attribute_converters.has_key?(key.to_sym) then
23
25
  _protobuf_attribute_converters[key.to_sym].call(value)
@@ -37,6 +39,8 @@ module Protoable
37
39
  end
38
40
 
39
41
  def _protobuf_convert_fields_to_columns(key, value)
42
+ return value if value.nil?
43
+
40
44
  value = case
41
45
  when _protobuf_field_converters.has_key?(key.to_sym) then
42
46
  _protobuf_field_converters[key.to_sym].call(value)
@@ -1,5 +1,5 @@
1
1
  module Protobuf
2
2
  module ActiveRecord
3
- VERSION = "1.2.1"
3
+ VERSION = "1.2.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protobuf-activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
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: 2012-11-20 00:00:00.000000000 Z
12
+ date: 2012-11-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -240,7 +240,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
240
240
  version: '0'
241
241
  segments:
242
242
  - 0
243
- hash: 3146829003992540419
243
+ hash: -1551278936322326165
244
244
  required_rubygems_version: !ruby/object:Gem::Requirement
245
245
  none: false
246
246
  requirements:
@@ -249,7 +249,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
249
249
  version: '0'
250
250
  segments:
251
251
  - 0
252
- hash: 3146829003992540419
252
+ hash: -1551278936322326165
253
253
  requirements: []
254
254
  rubyforge_project:
255
255
  rubygems_version: 1.8.24