simple_nested_set 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
@@ -20,7 +20,9 @@ module SimpleNestedSet
|
|
20
20
|
node.move_to_right_of(left_id)
|
21
21
|
elsif attributes.key?(:right_id) && right_id != node.id
|
22
22
|
node.move_to_left_of(right_id)
|
23
|
-
|
23
|
+
end
|
24
|
+
|
25
|
+
if attributes.key?(:parent_id) && parent_id != node.parent_id
|
24
26
|
node.move_to_child_of(parent_id)
|
25
27
|
end
|
26
28
|
end
|
@@ -74,4 +76,4 @@ module SimpleNestedSet
|
|
74
76
|
end
|
75
77
|
end
|
76
78
|
end
|
77
|
-
end
|
79
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_nested_set
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 63
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 16
|
10
|
+
version: 0.0.16
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sven Fuchs
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-11-02 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -113,7 +113,6 @@ extensions: []
|
|
113
113
|
extra_rdoc_files: []
|
114
114
|
|
115
115
|
files:
|
116
|
-
- lib/simple_nested_set.rb
|
117
116
|
- lib/simple_nested_set/act_macro.rb
|
118
117
|
- lib/simple_nested_set/class_methods.rb
|
119
118
|
- lib/simple_nested_set/inspect.rb
|
@@ -126,6 +125,7 @@ files:
|
|
126
125
|
- lib/simple_nested_set/rebuild/from_paths.rb
|
127
126
|
- lib/simple_nested_set/sql_abstraction.rb
|
128
127
|
- lib/simple_nested_set/version.rb
|
128
|
+
- lib/simple_nested_set.rb
|
129
129
|
has_rdoc: true
|
130
130
|
homepage: http://github.com/svenfuchs/simple_nested_set
|
131
131
|
licenses: []
|