Skip to content

NumericDeterministicOrdering methods not available when specifying order without using a string #116

Closed
@gertfj

Description

@gertfj

Hi

it seems that "order" isn't enabled when I specify my acts_as_tree statement like this:

acts_as_tree order: { position: :asc }, dependent: :destroy

If I specify it using a string for ordering then everything works fine:

acts_as_tree order: "position ASC", dependent: :destroy

Please note that the actual ordering works fine in both cases so the problem is likely in the order_is_numeric? method that controls the include of ClosureTree::NumericDeterministicOrdering.

Thanks for building a great gem !

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