polyrex-objects 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/polyrex-objects.rb +1 -1
- metadata +1 -1
data/lib/polyrex-objects.rb
CHANGED
@@ -39,7 +39,7 @@ class PolyrexObjects
|
|
39
39
|
i = @class_names.length - (k + 1)
|
40
40
|
eval "#{class_name}.class_eval {
|
41
41
|
def records()
|
42
|
-
XPath.
|
42
|
+
XPath.match(@node, 'records/*').map {|record| #{@class_names[i]}.new(record)}
|
43
43
|
end
|
44
44
|
|
45
45
|
def create(id=nil)
|