Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

v1.2.0

Compare
Choose a tag to compare
@10xSebastian 10xSebastian released this 25 May 12:47
· 13 commits to main since this release
58d3e00

adds .order to query chains

order

Set the expected order of things using .order

# app/controllers/some_controller.rb

Record.where(color: 'blue').order(:name, { created_at: :desc })
  GET https://service.example.com/records?color=blue&order[name]=asc&order[created_at]=desc