Skip to content

The order method breaks finders #193

@bibendi

Description

@bibendi

Hi @zilkey

After updating to v3.1 to use the new order method, I've experienced problems with finders.

> Language.find(54)
=> #<Language:0x00005583fd959238 @attributes={:id=>54, :code=>"en", :title=>"English"}>

> Language.order(title: :asc)

> Language.find(54)
=> #<Language:0x00005583fd9c7a58 @attributes={:id=>192, :code=>"gd", :title=>"Gàidhlig"}>

I think there is a mutation of original records causing the breaking of record_index.

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