---
title: "ransack 6.0.0 Breaking Changes on RubyGems | Since.dev"
description: "What each ransack release removed, renamed or changed: 24 breaking changes in 5 versions on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/ransack
last_updated: 2026-12-04
---

# ransack breaking changes

ransack 6.0.0 (October 9, 2026) is its newest release with breaking changes, 11 of them. The first: ransack 6.0.0 drops support for Ruby 3.1. Every breaking API change we have recorded in ransack on RubyGems: 24 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `6.1.3`. [Source repository](https://github.com/activerecord-hackery/ransack)

Its 6.0.0 release drops [Ruby 3.1](https://since.dev/calendar/ruby/3.1.md). [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [5.0.0](#v-5-0-0) to [6.0.0](#v-6-0-0): 11 breaking changes in 1 version.
- From [2.0.0](#v-2-0-0) to [6.0.0](#v-6-0-0): 21 breaking changes in 4 versions.

## ransack 6.0.0 breaking changes

ransack 6.0.0, released October 9, 2026: 11 breaking changes.

- **Removed**  

Ruby 3.1 is no longer supported, so users on Ruby 3.1 must move to a newer Ruby. [github.com](https://github.com/activerecord-hackery/ransack/releases/tag/v6.0.0)
- **Removed** `ActionView.Helpers.Tags.Base.value`  

The monkey patch is removed, so code that relied on it must change. [github.com](https://github.com/activerecord-hackery/ransack/releases/tag/v6.0.0)
- **Removed** `Polyamorous`  

Polyamorous is folded into Ransack::ActiveRecord; reference the new module instead. [github.com](https://github.com/activerecord-hackery/ransack/releases/tag/v6.0.0)
- **Removed** `Ransack.Adapters`  

Ransack::Adapters is folded into Ransack::ActiveRecord; reference the new module instead. [github.com](https://github.com/activerecord-hackery/ransack/releases/tag/v6.0.0)
- **Behavior changed**  

LIKE searches now escape wildcards and emit an ESCAPE clause on all adapters, which can change match results. [github.com](https://github.com/activerecord-hackery/ransack/releases/tag/v6.0.0)
- **Behavior changed**  

An unknown polymorphic type is treated as an invalid search key rather than being accepted. [github.com](https://github.com/activerecord-hackery/ransack/releases/tag/v6.0.0)
- **Behavior changed**  

Whitespace is now stripped from nested search params, which changes the values searched. [github.com](https://github.com/activerecord-hackery/ransack/releases/tag/v6.0.0)
- **Behavior changed**  

In strict mode, a single-value predicate given several values now raises an error. [github.com](https://github.com/activerecord-hackery/ransack/releases/tag/v6.0.0)
- **Behavior changed**  

An invalid combinator now raises instead of being accepted; combinator case is normalised. [github.com](https://github.com/activerecord-hackery/ransack/releases/tag/v6.0.0)
- **Behavior changed**  

Blank conditions in the low-level c: API are now removed, which changes the conditions produced. [github.com](https://github.com/activerecord-hackery/ransack/releases/tag/v6.0.0)
- **Behavior changed** `sorts=`  

Assigning sorts= replaces the existing sort list rather than adding to it. [github.com](https://github.com/activerecord-hackery/ransack/releases/tag/v6.0.0)

## ransack 5.0.0 breaking changes

ransack 5.0.0, released September 21, 2026: 6 breaking changes.

- **Removed** `ActionView.Helpers.Tags.Base.value`  

The monkey patch that ransack added to Rails form tag helpers is gone. Code relying on it must be changed. [github.com](https://github.com/activerecord-hackery/ransack/releases/tag/v5.0.0)
- **Renamed** `postgres_fields_sort_option`  

The option is now called fields_sort_option. The old name still works, but new code should use the new name. [github.com](https://github.com/activerecord-hackery/ransack/releases/tag/v5.0.0)
- **Behavior changed**  

'OR', :or and 'Or' now mean or instead of AND. Under ransack! or ignore_unknown_conditions: false, an unrecognised combinator raises Ransack::InvalidSearchError. [github.com](https://github.com/activerecord-hackery/ransack/releases/tag/v5.0.0)
- **Behavior changed** `cont`  

The cont predicate and its i\_, not\_, \_any and \_all variants now treat % and \_ literally. To pass a wildcard pattern, use matches. [github.com](https://github.com/activerecord-hackery/ransack/releases/tag/v5.0.0)
- **Behavior changed** `end`  

The end predicate and its variants now treat % and \_ literally. To pass a wildcard pattern, use matches. [github.com](https://github.com/activerecord-hackery/ransack/releases/tag/v5.0.0)
- **Behavior changed** `start`  

The start predicate and its variants now treat % and \_ literally. To pass a wildcard pattern, use matches. [github.com](https://github.com/activerecord-hackery/ransack/releases/tag/v5.0.0)

## ransack 4.0.0 breaking changes

ransack 4.0.0, released February 9, 2023: 2 breaking changes.

- **Removed** `Polyamorous`  

The Polyamorous entrypoint has been removed. Code that loads or references it must stop doing so. [github.com](https://github.com/activerecord-hackery/ransack/releases/tag/v4.0.0)
- **Behavior changed**  

Ransack now requires attributes and associations to be explicitly allowlisted before they can be used in searches. Existing searches on non-allowlisted attributes must be updated to allow them. [github.com](https://github.com/activerecord-hackery/ransack/releases/tag/v4.0.0)

## ransack 3.0.0 breaking changes

ransack 3.0.0, released March 30, 2022: 2 breaking changes.

- **Removed** `search`  

The deprecated #search method is removed in this release, so code calling it must be changed. [github.com](https://github.com/activerecord-hackery/ransack/releases/tag/v3.0.0)
- **Behavior changed** `ransackable_scopes`  

Query building now evaluates ransackable_scopes before attributes, which can change the order of evaluation for code that depends on it. [github.com](https://github.com/activerecord-hackery/ransack/releases/tag/v3.0.0)

## ransack 2.0.0 breaking changes

ransack 2.0.0, released August 9, 2018: 3 breaking changes.

- **Removed**  

Applications on Active Record earlier than 5.0 must upgrade Active Record before using this version. [github.com](https://github.com/activerecord-hackery/ransack/blob/v2.0.0/CHANGELOG.md)
- **Removed**  

Mongoid support is no longer included; users of Mongoid must install the separate gem instead. [github.com](https://github.com/activerecord-hackery/ransack/blob/v2.0.0/CHANGELOG.md)
- **Behavior changed**  

Scope arguments listed in ransackable_scopes_skip_sanitize_args bypass sanitization, so values like 0, 1, t, f pass through as real parameters. [github.com](https://github.com/activerecord-hackery/ransack/blob/v2.0.0/CHANGELOG.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
