polyrex 0.6.12 → 0.6.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/polyrex.rb +2 -1
  2. metadata +2 -2
data/lib/polyrex.rb CHANGED
@@ -18,6 +18,7 @@ class Polyrex
18
18
  end
19
19
 
20
20
  def create(id=nil)
21
+ # @create is a PolyrexCreateObject, @parent_node is a REXML::Element pointing to the current record
21
22
  @create.id = id || @id
22
23
  @create.record = @parent_node
23
24
  @create
@@ -102,7 +103,7 @@ class Polyrex
102
103
  end
103
104
 
104
105
  def load_handlers(schema)
105
- @create = PolyrexCreateObject.new(schema)
106
+ @create = PolyrexCreateObject.new(schema, @id)
106
107
  objects = PolyrexObjects.new(schema)
107
108
  @objects = objects.to_h
108
109
  @objects_a = objects.to_a
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyrex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.12
4
+ version: 0.6.13
5
5
  platform: ruby
6
6
  authors: []
7
7
 
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-06-23 00:00:00 +01:00
12
+ date: 2010-07-27 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency