#58867·rails

`in_order_of` raises on CTE & custom attributes

Author: viralpraxisCreated Sep 24, 2026Updated Sep 24, 2026

Steps to reproduce

See https://github.com/rails/rails/pull/57975

Expected behavior

8.1.4 leads to an error, every other rails version does not

Actual behavior

8.1.4 release introduced a regression; test_in_order_of_with_column_from_cte_serializes_custom_attribute_values test from https://github.com/rails/rails/pull/57975 raises

System configuration

Rails version: 8.1.4

Ruby version: 4.0.7