Adds a #sort query method to ActiveRecord that turns whitelisted user-supplied parameters into ORDER BY clauses -- ordering by columns or associations, ascending/descending, with NULLS handling and random ordering -- without exposing you to SQL injection.
Required Ruby Version
>= 3.3
Authors
Jon Bracy
Versions
- 10.0.0.rc1 July 15, 2026 (9 KB)
- 8.0.1 September 04, 2026 (12 KB)
- 8.0.0 August 27, 2026 (10.5 KB)
- 7.0.0 August 27, 2026 (7.5 KB)
- 6.1.0.2 March 23, 2021 (6.5 KB)