rails_admin_nested_set 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +0 -1
- data/Gemfile +1 -1
- data/README.md +14 -7
- data/app/assets/stylesheets/rails_admin_nested_set.css.scss +1 -0
- data/lib/rails_admin_nested_set/version.rb +1 -1
- metadata +1 -1
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
#
|
1
|
+
# RailsAdminNestedSet
|
2
2
|
|
3
|
-
|
3
|
+
It looks and feels exactly like https://github.com/dalpo/rails_admin_nestable but uses jquery Nested Sortable and awesome_nested_set instead of Nestable and Ancestry.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -39,15 +39,15 @@ Add the nested_set action for each model or only for models you need
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
-
In model
|
42
|
+
In model:
|
43
43
|
|
44
|
-
|
44
|
+
acts_as_nested_set
|
45
|
+
rails_admin do
|
45
46
|
...
|
46
|
-
|
47
47
|
nested_set({
|
48
48
|
max_depth: 1
|
49
49
|
})
|
50
|
-
|
50
|
+
end
|
51
51
|
|
52
52
|
## Contributing
|
53
53
|
|
@@ -62,4 +62,11 @@ In model config:
|
|
62
62
|
Some ideas and code for this gem are taken from:
|
63
63
|
|
64
64
|
https://github.com/dalpo/rails_admin_nestable (MIT license)
|
65
|
-
|
65
|
+
|
66
|
+
https://github.com/the-teacher/the_sortable_tree (MIT license)
|
67
|
+
|
68
|
+
## License
|
69
|
+
|
70
|
+
(c) 2013 http://rocketscience.pro
|
71
|
+
|
72
|
+
MIT license
|