You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: restore proper deprecation for database_less configuration (#459)
The database_less configuration option was removed in v9.1.0 without proper
deprecation, causing deployments to fail when upgrading if they had this
configuration in their production.rb or initializers.
This change restores backward compatibility by:
- Adding a minimal Configuration class that captures the deprecated database_less option
- Showing specific deprecation warnings when database_less is used
- Making the option a no-op (always returns false) since it's no longer needed
- Providing clear migration guidance for users to remove their configuration
The deprecation timeline indicates removal in v10.0.0, giving users time to
migrate away from this obsolete configuration without breaking deployments.
Also includes improvements to HasClosureTree include order dependency and
README formatting fixes to use inline return value comments.
Fixes the missing deprecation that was introduced when migrating to Zeitwerk.
Copy file name to clipboardExpand all lines: README.md
+15-24Lines changed: 15 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,8 @@ Note that closure_tree only supports ActiveRecord 7.2 and later, and has test co
73
73
74
74
Make sure you check out the [large number of options](#available-options) that `has_closure_tree` accepts.
75
75
76
+
**Note:**The`acts_as_tree`alias is only created if your model doesn't already have a method with that name. This prevents conflicts with other gems like the original `acts_as_tree` gem.
77
+
76
78
**IMPORTANT: Make sure you add `has_closure_tree` _after_ `attr_accessible` and
When it is more convenient to simply change the `parent_id` of a node directly (for example, when dealing with a form `<select>`), closure_tree will handle the necessary changes automatically when the record is saved:
0 commit comments