Sunday, October 08, 2006

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

1 Comments:

Anonymous Anonymous said...

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!

2:35 AM  

Post a Comment

<< Home