From 0babab637c70eed4e1d8f9c1824e1965d91f7ff7 Mon Sep 17 00:00:00 2001 From: Weston Ganger Date: Tue, 20 Aug 2024 09:18:22 -0700 Subject: [PATCH] Add notice stating no support for Rails 7.2+ --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 3d03720..8288079 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ > This is the community continued version of [`protected_attributes`](https://github.com/rails/protected_attributes) for Rails 5+. The Rails team dropped this feature and switched to `strong_parameters`. However some applications simply cannot be upgraded or the reduced granularity in params management is a non-issue. To continue supporting this feature going forward we continue the work here. +> This gem only supports Rails 5.0 to Rails 7.1. Starting in Rails 7.2 some API's have been changed and this gem will not be updated to support it, please transition to strong params or the suggested alternative approach at the bottom of the readme. + Protect attributes from mass-assignment in Active Record models. This gem adds the class methods `attr_accessible` and `attr_protected` to declare white or black lists of attributes.