ooor 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -364,6 +364,7 @@ module Ooor
364
364
  def relationnal_result(method_name, *arguments)
365
365
  self.class.reload_fields_definition()
366
366
  if self.class.many2one_associations.has_key?(method_name)
367
+ return false unless @associations[method_name]
367
368
  load_association(self.class.many2one_associations[method_name]['relation'], @associations[method_name].is_a?(Integer) && @associations[method_name] || @associations[method_name][0], *arguments)
368
369
  elsif self.class.one2many_associations.has_key?(method_name)
369
370
  load_association(self.class.one2many_associations[method_name]['relation'], @associations[method_name], *arguments) || []
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 5
8
- - 0
9
- version: 1.5.0
8
+ - 1
9
+ version: 1.5.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Raphael Valyi - www.akretion.com
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-02-28 00:00:00 -03:00
17
+ date: 2011-03-10 00:00:00 -03:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency