Merge pull request #15658 from akshay-vishnoi/object-tests

Move object test files under object
Merge pull request #15629 from akshay-vishnoi/test-to_param

Define Hash#to_query and set Hash#to_param as alias to it; with test cases
Fix database serialization of job class names with Que

When passing a class constant as a job argument, Que’s stored procedures serialize it to JSON in the database as `{}`. This means that when the job (the ActiveJob “wrapper”) is deserialized from the database, it can’t find the original job class to run again.

Changing the Que adapter to serialize the job class as a string fixes this behaviour. This change makes the adapter consistent with other adapters too (which constantize a class string in their JobWrapper#perform methods.
Merge pull request #100 from timriley/fix-que-class-serialization

Fix database serialization of job class names with Que
Give password_confirmation div the "field" class in erb form template
Added failing test case for #16131
Fixed a compatibility issue with the `Oj` gem

`Time#as_json`, `Date#as_json` and `DateTime#as_json` incorrectly depends on a
delegation that is set up in `active_support/json/encoding`. We cannot simply
require that file in `core_ext/object/json` because it would cause a circular
dependency problem (see #12203 for background). We should instead rely on AS's
autoload to load that file for us on-demand.

To trigger autoload correctly, we need to reference the `AS::JSON::Encoding`
constant instead of using the delegated version.

Fixes #16131.
Raise an exception when attachments are added after `mail` was called.

Closes #16163

Adding attachments after a call to `mail` will result in invalid emails.
This is related to the fact, that `mail` is making the required preparations
before the email is ready to be sent. These change depending on your
added attachments.
Merge pull request #16148 from rails/fix_json_autoload

Fix json autoload
Rename variables for consistency.
Merge pull request #16328 from noinkling/template_password_confirmation_fix

Give password_confirmation div the "field" class in the scaffold generator "_form" partial
[ci skip] fix doc typo for validates_uniqueness_of
Merge pull request #16332 from shizm/fix-docs-validates-uniqueness-of

[ci skip] fix doc typo for validates_uniqueness_of
Move array test files under array
docs, cleanup mixed indents within `form_options_helper.rb` RDoc.

[ci skip]

This fixes the broken code block rendering and indents the examples
within the parameter list.
Merge pull request #16334 from akshay-vishnoi/array-tests

Move array test files under array
Add missing test case for Array#to_sentence, collect all test cases for Object#to_param at one place and avoid repitition
Remove @state.parent assignment on commit

This piece of code was introduced on
67d8bb963d5d51fc644d6b1ca20164efb4cee6d7 , which was calling
`committed?` in the `transaction_state` before calling the `committed!`
method. However on 7386ffc781fca07a0c656db49fdb54678caef809, the
`committed?` check was removed and replaced by a `finalized?`, which
only checks if the state is not nil. Thus we can remove that line.
Merge pull request #16336 from akshay-vishnoi/fix-tests

Add missing test case for Array#to_sentence, collect all test cases for Object#to_param at one place and avoid repitition
Get request should not write to database note added. [skip ci]