RubyGems
npm
Organizations
Log in
Sign up
RubyGems
polyrex
Versions diffs
0.4.1 → 0.4.2
polyrex 0.4.1 → 0.4.2
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
data/lib/polyrex.rb
+2
-1
metadata
+1
-1
data/lib/polyrex.rb
CHANGED
Viewed
@@ -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
Viewed
@@ -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