Skip to content

undefined method `_ct_reorder_siblings' for an instance of Tag #485

Description

@tbrammar

In the latest version of Closuretree (v9.6.0), when updating a tag, we're getting a undefined method '_ct_reorder_siblings' for an instance of Tag

Example here:

3.3.4 :001 > tag = FactoryBot.create(:tag)
 => 
#<Tag:0x000000012e9ecbe8
 id: 844,
 name: "inventore ducimus",
 parent_id: 843,
 created_at: "2026-02-23 15:22:48.728267000 +0100",
 updated_at: "2026-02-23 15:22:48.728267000 +0100",
 title: nil,
 description: nil> 
3.3.4 :002 > tag.update(name: 'Foobar')
(rails-app):3:in `<top (required)>': undefined method `_ct_reorder_siblings' for an instance of Tag (NoMethodError)

It seems that this change is the root cause: https://github.com/ClosureTree/closure_tree/pull/484/changes#diff-2423b183850e1772ca6dbbcb3a612936b6f92ab76b9d7c650efe95cfcfe7e8b5R44-R54

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions