Merge pull request #11643 from vipulnsward/query_cache_clear

Fix QueryCache to work with nested blocks
Fix bad usage of #select with hash
Fix ActiveRecord::Callbacks sample code [ci skip]

Callback caller class uses `after_initialize`,
but Callback callee defines `after_find`.

Current sample code causes following error.

  NoMethodError: undefined method `after_initialize' for #<EncryptionWrapper:0x007fe4931fa5c0>
Merge pull request #13143 from joker1007/fix_active_record_callbacks_document_bug

Fix ActiveRecord::Callbacks sample code [ci skip]
Typos. return -> returns. [ci skip]
Use travel_to convention in existing test
Add support for localized date references

Ruby's Date class automatically gives us #yesterday, #today,
and #tomorrow. And ActiveSupport has a handy Time.zone.today
for getting a localized version. But there was no localized
version of #yesterday or #tomorrow. Until now.
fix email regex example code [ci skip]

different from the regex in EmailValidator
Merge pull request #13145 from acapilleri/fix_email_example

fix email regex example code [ci skip]
Merge pull request #12822 from cbartlett/master

Add support for localized date references
Added Date#all_week/month/quarter/year for generating date ranges
Merge pull request #9685 from dimko/patch-2

Added Date#all_week/month/quarter/year for generating date ranges
Changelog improvements [ci skip]
`connection.type_to_sql` returns a `String` for unmapped types.

Closes #13146.

This fixes an error when using:

```
change_colum :table, :column, :bigint, array: true
```
ActiveRecord migration exception message formatting
Merge branch 'master-sec'

* master-sec:
  Deep Munge the parameters for GET and POST
  Stop using i18n's built in HTML error handling.
  Ensure simple_format escapes its html attributes
  Escape the unit value provided to number_to_currency
  Only use valid mime type symbols as cache keys
Fix offset with last.

Closes #7441
Remove the escaping skip

We are generating safe strings in the paragraph, so we can escape the
tags
Merge pull request #13149 from laurocaetano/fix_offset_last

Fix offset with last.
Merge pull request #12462 from jjb/improve_ar_exception_message_formatting

Improve formatting of ActiveRecord migration exception messages