Skip to content

Add a caveat about default_scope to the README? #86

Closed
@bithive

Description

@bithive

I just spent way too long trying to figure out why closure_tree wasn't working for me; it turns out that I had declared

default_scope { order('id asc') }

in my model and it was causing trees to misbehave when they contained children whose IDs where less than that of their parent. Perhaps my blunder can be documented to help others avoid similar headaches.

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