`CollectionProxy#include?` returns `true` and `false` as documented.
Merge pull request #12507 from malavbhavsar/doc_patch

Some fixes in docs [ci skip]
Conflicts:
	guides/source/active_record_basics.md
Merge pull request #11791 from versioncontrol/includes_with_persistent_select

Includes with persistent select, fixes #11773
Conflicts:
	activerecord/CHANGELOG.md
	activerecord/lib/active_record/relation/finder_methods.rb
Merge pull request #12493 from drodriguez/patch-1

Keep code consistent with previous code blocks.
Merge pull request #12491 from shamanime/patch-1

Fix wrong variable name used in the select_day method documentation
Merge pull request #12511 from jetthoughts/informative_raise_message_for_incorrect_association

Make missed association exception message more informative
Conflicts:
	activerecord/CHANGELOG.md
	activerecord/lib/active_record/associations/preloader.rb
Extract local variable to avoid method call
Merge pull request #12508 from jetthoughts/12415_generate_subqueries_for_relation_from_binding_params

Generate subquery for Relation passed as array condition for where

Conflicts:
	activerecord/CHANGELOG.md

Conflicts:
	activerecord/CHANGELOG.md
Dump the default function when the primary key is uuid

Fixes #12489
Push default_function to superclass to avoid method check
Extract a function to determine if the default value is a function
Merge branch 'default_function' into 4-0-stable
use arel rather than slapping together SQL strings
Merge pull request #11880 from senny/backport_arel_fix

Backport arel fix
cleanup changelog entry format. [ci skip]

Conflicts:
	activerecord/CHANGELOG.md
Merge pull request #9499 from dmitry/inverse_instance_should_not_be_reloaded_after_stale_state_change

Inversed instance should not be reloaded after stale state was changed

Conflicts:
	activerecord/CHANGELOG.md

Conflicts:
	activerecord/CHANGELOG.md
Merge pull request #10538 from neerajdotname/3882

scope_chain should not be mutated for other reflections
Conflicts:
	activerecord/CHANGELOG.md
Merge pull request #12536 from sbagdat/patch-1

Remove size alias for length validation
Merge pull request #12543 from route/missed_require

Add missed require making `enable_warnings` available
Remove git dependecy from Gemfile