ActiveInteraction v5.0.0 Release Notes
Release Date: 2022-06-24 // almost 2 years ago-
🔄 Changed
- ⬇️ Drop support for JRuby.
- ⬇️ Drop support for Ruby 2.5 and 2.6, adding support for 3.1
- ⬇️ Drop support for Rails 5.0 and 5.1
ActiveInteraction::Inputs
no longer inherits fromHash
though it still has most of the methods provided byHash
(methods that write were removed).- ✂ Removed
Filter#clean
(useFilter#process
and call#value
on the result) - ⬆️ The
given?
method has been moved ontoinputs
. (how to upgrade) - ⚡️ [#503][] - The record filter now treats blank strings value as
nil
. This was missed in the 4.0 update. - 👍 The
type_check
callback has been renamed tofilter
to better match the reality of what it does. (how to upgrade) ActiveIneraction::FilterColumn
is nowActiveInteraction::Filter::Column
- Errors on the array filter will now be indexed if the Rails config
index_nested_attribute_errors
istrue
or the:index_errors
option is set totrue
. The:index_errors
option always overrides the Rails config. - Invalid nested errors (
:invalid_nested
) are gone. Instead the nested errors will appear as they would in Rails if they were ahas_many
relationship being assigned attributes through a parent. (how to upgrade)
➕ Added
Filter#process
which returns anInput
.
🛠 Fixed
- When passing an
ActiveRecord::Relation
in an array filter with no inner filter, the value returned was anActiveRecord::Relation
instead of an Array.
⬆️ Upgrading
given?
The
given?
method can now be found oninputs
. It works the same as before.