has_parent? is deprecated and will be removed from Rails 2.0
For anyone using acts_as_tree the node.has_parent? method has been depricated. Instead, use node.parent, like this:
Change:
do something unless node.has_parent?
To:
do something unless node.parent
Change:
do something unless node.has_parent?
To:
do something unless node.parent
1 Comments:
Mr. Bristol! Thank you! I have been futzing with this for a while and growing more gray in the process until I came across your short post. Thanks again. Best!
Post a Comment
<< Home