Revert Active Model’s Normalization and Cache Store gets session ID uniqueness flag
Hi, it’s zzak. Let’s explore this week’s changes in the Rails codebase.
Fix “#to_query” to not include setter for nil values
To keep the behavior consistent with Rack::Utils.parse_nested_query
.
# Before
nil.to_query("key") #=> key=
# After
nil.to_query("key") #=> key
Raise “ActiveRecordError” when “#increment!” called on new records
Similar to the behavior of #update_columns
, an exception will be raised on records that haven’t been saved yet or were destroyed.
Revert “ActiveModel::Attributes::Normalization”
In the last episode, we announced that ActiveRecord::Normalization
was moved to Active Model.
That PR was reverted because the API wasn’t ready and is still being worked on.