ooor 1.6.3 → 1.6.4

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/app/models/serialization.rb +2 -1
  2. metadata +1 -1
@@ -19,7 +19,7 @@ module Ooor
19
19
  if loaded_associations[k].is_a? Array
20
20
  included_associations[k] = loaded_associations[k].map {|item| item.as_json[item.class.openerp_model.gsub('.', '_')]}
21
21
  else
22
- included_associations[k] = associations[k].map {|id| {"id" => id}}
22
+ included_associations[k] = associations[k].map {|id| {"id" => id}} if associations[k]
23
23
  end
24
24
  end
25
25
 
@@ -29,3 +29,4 @@ module Ooor
29
29
 
30
30
  end
31
31
  end
32
+
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ooor
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.6.3
5
+ version: 1.6.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Raphael Valyi - www.akretion.com