Skip to content

Commit a1d8076

Browse files
author
Matthew McEachen
committed
Add more warning messages about where to put acts_as_tree.
1 parent ff8331e commit a1d8076

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
### 4.2.8
4+
5+
* More massaging for Rails 4 and ```attr_accessible``` support
6+
37
### 4.2.7
48

59
* ```self_and_ancestors``` and ```ancestry_hierarchy``` are reloaded

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ Note that closure_tree only supports Rails 3.0 and later, and has test coverage
5959

6060
2. Run ```bundle install```
6161

62-
3. Add ```acts_as_tree``` to your hierarchical model(s). There are a number of [options](#available-options) you can pass in, too.
62+
3. Add ```acts_as_tree``` to your hierarchical model(s).
63+
Make sure you add ```acts_as_tree``` *after any ```attr_accessible``` and ```self.table_name =```
64+
lines in your model.
65+
Please review the [available options](#available-options) you can provide.
6366

6467
4. Add a migration to add a ```parent_id``` column to the model you want to act_as_tree.
6568
You may want to also [add a column for deterministic ordering of children](#sort_order), but that's optional.

lib/closure_tree/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module ClosureTree
2-
VERSION = Gem::Version.new("4.2.7") unless defined?(::ClosureTree::VERSION)
2+
VERSION = Gem::Version.new('4.2.8') unless defined?(::ClosureTree::VERSION)
33
end

0 commit comments

Comments
 (0)