jnicklas-eb_nested_set 0.3.5 → 0.3.6
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.
- data/README.md +4 -0
- data/Rakefile +1 -1
- data/lib/eb_nested_set.rb +3 -2
- metadata +2 -2
data/README.md
CHANGED
@@ -26,6 +26,10 @@ You can also install it as a Rails plugin.
|
|
26
26
|
|
27
27
|
script/plugin install git://github.com/jnicklas/even_better_nested_set.git
|
28
28
|
|
29
|
+
## Contributing
|
30
|
+
|
31
|
+
EvenBetterNestedSet is hosted at [GitHub](http://github.com/jnicklas/eb_nested_set/tree/master). If you'd like to contribute, please create a fork and send pull requests :)
|
32
|
+
|
29
33
|
## Declaring nested sets
|
30
34
|
|
31
35
|
This is how you declare a nested set:
|
data/Rakefile
CHANGED
data/lib/eb_nested_set.rb
CHANGED
@@ -4,8 +4,9 @@ module EvenBetterNestedSet
|
|
4
4
|
class IllegalAssignmentError < NestedSetError; end
|
5
5
|
|
6
6
|
##
|
7
|
-
# Declare this model as a nested set. Automatically adds all methods in
|
8
|
-
# well as parent and
|
7
|
+
# Declare this model as a nested set. Automatically adds all methods in
|
8
|
+
# +EvenBetterNestedSet::NestedSet+ to the model, as well as parent and
|
9
|
+
# children associations.
|
9
10
|
#
|
10
11
|
# == Options
|
11
12
|
# left [Symbol]:: the name of the column that contains the left boundary [Defaults to +left+]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jnicklas-eb_nested_set
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Nicklas
|
@@ -9,7 +9,7 @@ autorequire: eb_nested_set
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-04-07 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|