custom_fields 1.0.0.beta.17 → 1.0.0.beta.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -100,7 +100,7 @@ module CustomFields
100
100
  id_or_object
101
101
  else
102
102
  if self.target_klass.embedded?
103
- self.target_klass._parent.send(self.target_klass.association_name).find(id_or_object)
103
+ self.target_klass._parent.reload.send(self.target_klass.association_name).find(id_or_object)
104
104
  else
105
105
  self.target_klass.find(id_or_object)
106
106
  end
@@ -39,7 +39,7 @@ module CustomFields
39
39
  target_klass = '#{self.target.to_s}'.constantize
40
40
 
41
41
  if target_klass.embedded?
42
- @_#{self._name} = target_klass._parent.send(target_klass.association_name).find(target_id)
42
+ @_#{self._name} = target_klass._parent.reload.send(target_klass.association_name).find(target_id)
43
43
  else
44
44
  @_#{self._name} = target_klass.find(target_id)
45
45
  end
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module CustomFields
3
- VERSION = "1.0.0.beta.17"
3
+ VERSION = "1.0.0.beta.18"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: custom_fields
3
3
  version: !ruby/object:Gem::Version
4
- hash: 62196385
4
+ hash: 62196391
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
9
  - 0
10
10
  - beta
11
- - 17
12
- version: 1.0.0.beta.17
11
+ - 18
12
+ version: 1.0.0.beta.18
13
13
  platform: ruby
14
14
  authors:
15
15
  - Didier Lafforgue
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-06-09 00:00:00 Z
20
+ date: 2011-06-16 00:00:00 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: mongoid