polyrex-createobject 0.3.3 → 0.3.4

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-createobject.rb +1 -1
  2. metadata +1 -1
@@ -60,7 +60,7 @@ end
60
60
  @id = id if id
61
61
 
62
62
  record.root.add_attribute('id', @id.to_s)
63
- if @id[/[0-9]/] then
63
+ if @id.to_s[/[0-9]/] then
64
64
  @id.succ!
65
65
  else
66
66
  @id = XPath.first(@parent_node.root, 'count(//@id)').to_i + 2
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.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors: []
7
7