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

Rename parent_ids to ancestor_ids #60

Closed
wants to merge 1 commit into from
Closed

Rename parent_ids to ancestor_ids #60

wants to merge 1 commit into from

Conversation

nbouscal
Copy link

@nbouscal nbouscal commented Jun 1, 2015

Currently parent_ids is confusingly named, because it actually contains the ids of the document's ancestors, not just parents. Since mongoid-tree only supports trees (not DAGs) it only makes sense for it to be a list of ancestors, but at a first glance the naming makes the code more confusing than necessary. I definitely understand if you don't want to change the API for something this trivial, but I thought I'd send a PR your way anyway in case you do think the change is worth it.

@benedikt
Copy link
Owner

benedikt commented Jun 1, 2015

Hi Nathan,

thanks a lot for this pull requests. You're right about the naming and your changed absolutely make sense. With mongoid 5.0 coming up soon, I'll merge it with the next major release of mongoid-tree.

Cheers,

Benedikt

@nbouscal
Copy link
Author

Closing this PR; I haven't used mongoid in years now and want to clean out my open PRs.

@nbouscal nbouscal closed this Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants