3.2 KiB
-
Remove support to Marshal load Rails 5.x
ActiveModel::AttributeSet
format.Rafael Mendonça França
-
Remove support to Marshal and YAML load Rails 5.x error format.
Rafael Mendonça França
-
Remove deprecated support to use
[]=
inActiveModel::Errors#messages
.Rafael Mendonça França
-
Remove deprecated support to
delete
errors fromActiveModel::Errors#messages
.Rafael Mendonça França
-
Remove deprecated support to
clear
errors fromActiveModel::Errors#messages
.Rafael Mendonça França
-
Remove deprecated support concat errors to
ActiveModel::Errors#messages
.Rafael Mendonça França
-
Remove deprecated
ActiveModel::Errors#to_xml
.Rafael Mendonça França
-
Remove deprecated
ActiveModel::Errors#keys
.Rafael Mendonça França
-
Remove deprecated
ActiveModel::Errors#values
.Rafael Mendonça França
-
Remove deprecated
ActiveModel::Errors#slice!
.Rafael Mendonça França
-
Remove deprecated
ActiveModel::Errors#to_h
.Rafael Mendonça França
-
Remove deprecated enumeration of
ActiveModel::Errors
instances as a Hash.Rafael Mendonça França
-
Clear secure password cache if password is set to
nil
Before:
user.password = 'something' user.password = nil
user.password # => 'something'
Now:
user.password = 'something' user.password = nil
user.password # => nil
Markus Doits
Rails 7.0.0.alpha2 (September 15, 2021)
- No changes.
Rails 7.0.0.alpha1 (September 15, 2021)
-
Introduce
ActiveModel::API
.Make
ActiveModel::API
the minimum API to talk with Action Pack and Action View. This will allow adding more functionality toActiveModel::Model
.Petrik de Heus, Nathaniel Watts
-
Fix dirty check for Float::NaN and BigDecimal::NaN.
Float::NaN and BigDecimal::NaN in Ruby are special values and can't be compared with
==
.Marcelo Lauxen
-
Fix
to_json
forActiveModel::Dirty
object.Exclude
mutations_from_database
attribute from json as it lead to recursion.Anil Maurya
-
Add
ActiveModel::AttributeSet#values_for_database
.Returns attributes with values for assignment to the database.
Chris Salzberg
-
Fix delegation in ActiveModel::Type::Registry#lookup and ActiveModel::Type.lookup.
Passing a last positional argument
{}
would be incorrectly considered as keyword argument.Benoit Daloze
-
Cache and re-use generated attribute methods.
Generated methods with identical implementations will now share their instruction sequences leading to reduced memory retention, and slightly faster load time.
Jean Boussier
-
Add
in: range
parameter tonumericality
validator.Michal Papis
-
Add
locale
argument toActiveModel::Name#initialize
to be used to generate thesingular
,plural
,route_key
andsingular_route_key
values.Lukas Pokorny
-
Make ActiveModel::Errors#inspect slimmer for readability
lulalala
Please check 6-1-stable for previous changes.