---
title: "attr_encrypted 4.0.0 Breaking Changes on RubyGems"
description: "What each attr_encrypted release removed, renamed or changed: 9 breaking changes in 2 versions on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/attr_encrypted
last_updated: 2026-12-04
---

# attr_encrypted breaking changes

attr_encrypted 4.0.0 (April 6, 2023) is its newest release with breaking changes, 3 of them. The first: Drops support for Rails 3 and Rails 4 in attr_encrypted 4.0.0. Every breaking API change we have recorded in attr_encrypted on RubyGems: 9 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.2.0`. [Source repository](https://github.com/attr-encrypted/attr%5Fencrypted)

Packages on RubyGems run on Ruby. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [2.0.0](#v-2-0-0) to [4.0.0](#v-4-0-0): 3 breaking changes in 1 version.

## attr_encrypted 4.0.0 breaking changes

attr_encrypted 4.0.0, released April 6, 2023: 3 breaking changes.

- **Removed**  

Support for Rails 3 and 4 was dropped in this release; apps on those versions must stay on attr_encrypted 3.1.0. [github.com](https://github.com/attr-encrypted/attr%5Fencrypted/releases/tag/v4.0.0)
- **Removed**  

The gem is no longer signed on release, so users relying on gem signature verification must change their checks. [github.com](https://github.com/attr-encrypted/attr%5Fencrypted/releases/tag/v4.0.0)
- **Removed** `encrypted_attributes`  

Calling encrypted_attributes is no longer supported; use attr_encrypted_encrypted_attributes instead to avoid collision with Active Record 7 native encryption. [github.com](https://github.com/attr-encrypted/attr%5Fencrypted/releases/tag/v4.0.0)

## attr_encrypted 2.0.0 breaking changes

attr_encrypted 2.0.0, released February 23, 2016: 6 breaking changes.

- **Removed**  

The gem no longer supports Rails below 3.x. Upgrade Rails before using this version. [github.com](https://github.com/attr-encrypted/attr%5Fencrypted/blob/2.0.0/CHANGELOG.md)
- **Removed**  

The gem no longer supports Ruby below 2.x. Upgrade Ruby before using this version. [github.com](https://github.com/attr-encrypted/attr%5Fencrypted/blob/2.0.0/CHANGELOG.md)
- **Behavior changed**  

Dynamic finders no longer work in other modes. Use :single_iv_and_salt mode if you rely on them. [github.com](https://github.com/attr-encrypted/attr%5Fencrypted/blob/2.0.0/CHANGELOG.md)
- **Behavior changed** `attr_encrypted`  

Classes that used the module must now extend their class to use it. ORMs remain extended automatically. [github.com](https://github.com/attr-encrypted/attr%5Fencrypted/blob/2.0.0/CHANGELOG.md)
- **Default changed** `algorithm`  

Data encrypted with the new default algorithm differs from earlier defaults, so set the algorithm explicitly if older data must be read. [github.com](https://github.com/attr-encrypted/attr%5Fencrypted/blob/2.0.0/CHANGELOG.md)
- **Default changed** `mode`  

The default mode is now per-attribute IV. Set the mode explicitly if existing data uses another mode. [github.com](https://github.com/attr-encrypted/attr%5Fencrypted/blob/2.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.
