polyrex-createobject 0.4.6 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/polyrex-createobject.rb +3 -1
- metadata +2 -2
data/lib/polyrex-createobject.rb
CHANGED
@@ -29,6 +29,7 @@ class PolyrexCreateObject
|
|
29
29
|
def attach_create_handlers(names)
|
30
30
|
methodx = names[0..-2].map do |name, xpath|
|
31
31
|
|
32
|
+
# nested records
|
32
33
|
%Q(
|
33
34
|
def #{name}(params={}, id=nil,&blk)
|
34
35
|
|
@@ -46,7 +47,8 @@ class PolyrexCreateObject
|
|
46
47
|
end
|
47
48
|
|
48
49
|
name, xpath = names[-1]
|
49
|
-
|
50
|
+
|
51
|
+
# top record
|
50
52
|
methodx << %Q(
|
51
53
|
def #{name}(params={}, id=nil,&blk)
|
52
54
|
self.record = @parent_node.element('records') unless @parent_node.name == 'records'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polyrex-createobject
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.7
|
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: 2011-
|
12
|
+
date: 2011-02-28 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|