-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug with leaf?
method
#66
Comments
This is strange, because Maybe you have a method on your model that overrides the default |
I have not method that overrides this chilldren association. My first idea was |
This sounds similar to the ActiveRecord bug described in issue rails/rails#28579. Could you try if the bug is fixed by using rails master? |
Bug is fixed in rails#master |
leaf?
method given me exception:I have the same error with this:
model.association.children.size.zero?
Can we change implementation of
leaf?
acts_as_tree/lib/acts_as_tree.rb
Line 352 in 4fa8980
method from:
to:
?
Video: https://youtu.be/hutkAa39JcU
The text was updated successfully, but these errors were encountered: