polyrex 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/polyrex.rb +2 -1
  2. metadata +1 -1
data/lib/polyrex.rb CHANGED
@@ -48,7 +48,8 @@ class Polyrex
48
48
  @create
49
49
  end
50
50
 
51
- def delete()
51
+ def delete(id=nil)
52
+ self.find_by_id(id) if id
52
53
  @parent_node.parent.delete @parent_node
53
54
  end
54
55
 
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.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors: []
7
7