Skip to content

Document alias level depth in README #461

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

Merged
merged 1 commit into from
Jul 25, 2025
Merged

Conversation

Spone
Copy link
Contributor

@Spone Spone commented Jul 24, 2025

I had weird issues caused by an enum defined on my model that conflicted with closure_tree. I had a hard time understanding this because this alias was not documented in the README.

class TaxonomyNode < ApplicationRecord
  enum :level, { family: 0, subfamily: 1, tribe: 2, genus: 3, subgenus: 4 }, validate: true

  has_closure_tree
end

This PR adds an mention in the README.

It would also be a good idea to provide a list of potentially conflicting method names.

@seuros seuros merged commit 0f3b0f6 into ClosureTree:master Jul 25, 2025
@Spone Spone moved this to Done in Open Source Jul 25, 2025
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.

2 participants