From edc2a329a13b857bd62c10feb8b83de78aad9494 Mon Sep 17 00:00:00 2001 From: Maarten Brouwers Date: Wed, 6 May 2026 16:24:11 +0200 Subject: [PATCH 1/2] Update configuration settings in getting-started guide Cross checked the configuration options in configuration.rb --- docs/docs/getting-started/configuration.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/docs/getting-started/configuration.md b/docs/docs/getting-started/configuration.md index a10a7f662..16ad82c82 100644 --- a/docs/docs/getting-started/configuration.md +++ b/docs/docs/getting-started/configuration.md @@ -21,8 +21,26 @@ Ransack.configure do |config| # Globally display sort links without the order indicator arrow. # Default is false (sort order indicators are displayed). # This can also be configured individually in each sort link (see the README). - config.hide_sort_order_indicators = true + config.hide_sort_order_indicators = false + # By default, Ransack displays sort order indicator arrows with HTML codes, but + # these can be overridden. + config.custom_arrows = { + up_arrow: '', # default: '▼' + down_arrow: 'U+02193', # default: '▲' + default_arrow: 'U+11047' # default: nil + } + + # Ransack sanitizes many values in your custom scopes into booleans. + # You can turn this off for custom scopes. + config.sanitize_custom_scope_booleans = false + + # Configure a default predicate if an unknown predicate is passed; setting it to + # e.g. 'eq' allows for allowing for exact matches by just the attribute name. + config.default_predicate = 'eq' + + # Postgres has a nulls first / nulls last option, this can be configured. + config.postgres_fields_sort_option = :nulls_first # or e.g. :nulls_always_last end ``` From 8ab42f5e303436974136df5b2bb6c2a1ea9a019f Mon Sep 17 00:00:00 2001 From: Maarten Brouwers Date: Wed, 6 May 2026 16:29:13 +0200 Subject: [PATCH 2/2] Change hide_sort_order_indicators back to true --- docs/docs/getting-started/configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/getting-started/configuration.md b/docs/docs/getting-started/configuration.md index 16ad82c82..37d89c424 100644 --- a/docs/docs/getting-started/configuration.md +++ b/docs/docs/getting-started/configuration.md @@ -21,7 +21,7 @@ Ransack.configure do |config| # Globally display sort links without the order indicator arrow. # Default is false (sort order indicators are displayed). # This can also be configured individually in each sort link (see the README). - config.hide_sort_order_indicators = false + config.hide_sort_order_indicators = true # By default, Ransack displays sort order indicator arrows with HTML codes, but # these can be overridden.