Skip to content

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