Skip to content
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

Add predicates ancestor_of?, parent_of?, root_of?, children_of?, sibling_of? and descendant_of?. #45

Closed
wants to merge 6 commits into from

Conversation

deni64k
Copy link
Contributor

@deni64k deni64k commented Apr 30, 2011

Hi!
I added few helper methods, maybe it will be interesting for you.

@stefankroes
Copy link
Owner

Hi,

The pull requests looks good, I would like to merge it.

Would you mind renaming 'children_of?' to 'child_of?'?

Maybe also pull the tests out of test_tree_navigation and write a separate test method test_tree_checks and test some false cases?

Kind regards,

Stefan

@deni64k
Copy link
Contributor Author

deni64k commented May 10, 2011

Ok, i will fix it.

@deni64k
Copy link
Contributor Author

deni64k commented Jun 9, 2011

Hi!
Sorry for the delay.

I pushed my commits. I squashed a commit with renaming children_of?.
I tested it with rails 2.3.12, 3.0.0 and 3.0.8.

@kbrock kbrock mentioned this pull request Jan 1, 2016
@kbrock
Copy link
Collaborator

kbrock commented Jan 1, 2016

Merged primary PR.

Did not bring across the string primary key work.
Please ping if you need this as well

@kbrock kbrock closed this Jan 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants