ooor 1.6.3 → 1.6.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/app/models/serialization.rb +2 -1
- 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
|
+
|