Removed use of mocha in the info_controller tests
Move PredicateBuilder instantiation to constructor

In order to maintain thread safety and prevent race condition from memoization.
Merge pull request #17898 from mrgilman/move-predicate-builder-to-constructor

Move PredicateBuilder instantiation to constructor
Merge pull request #17891 from prathamesh-sonpatki/remove-mocha-from-info-controller-tests

Removed use of mocha in the info_controller tests
Clarify that batching methods can be used with any orderable type primary key, not just integer ones, as per @a58cafeb3a86be46849de57481b6644094fb8165
Merge pull request #17901 from isaacseymour/fix-find-each-docs

Correct docs for ActiveRecord batching methods [ci skip]
docs, bring back `ActiveRecord::Core` methods in the API. [ci skip]

This `# :nodoc:` had the effect of hiding every method that follows.
This meant that the API page for `ActiveRecord::Core` only contained
`configurations` and none of the following methods.

Furthermore this `# :nodoc:` had no effect on `maintain_test_schema`.
Those `mattr_accessor` inside the `included` block are not picked up
by rdoc.

/cc @zzak