Merge pull request #10099 from wangjohn/railties_each_with_config_2nd_attempt

Created way of cloning a Rails::Application instance
Further clean-up of ActiveSupport::Callbacks

In #11195 I noticed a trailing comma in the docs, but I decided to
further clean it up.

What I have done:

* Clean up the trailing comma in the docs and some extra whitespace
  lines.
* Used `Array#extract` options to factor the repetitive pattern of
  `args.last.is_a(Hash) ? ...`
* Renamed the local var `config` to `options` in `define_callbacks`, as
  `options` seems to be the de facto name for the options objects.
* Renamed the local var `l` to `line` in `define_callback` (maybe it
  meant `lambda` in the context) as single `l` may look like `1` in some
  fonts.
Merge pull request #11211 from gsamokovarov/trailing-comma

Further clean-up of ActiveSupport::Callbacks
Merge pull request #11207 from vipulnsward/remove_escapes

Remove redundant escapes from xml serialization test
Using ActiveSupport::Concern instead of plain regular Ruby hooks in railties/lib/rails/generators/migration.rb file
Removed deprecated method default_scopes?
Removed deprecated method scoped
Merge pull request #11203 from schneems/schneems/plugin_new-plugin

s/plugin_new/plugin
Merge pull request #11212 from neerajdotname/default_scopes_q_deprecated

Removed deprecated default_scopes?
Merge pull request #11213 from neerajdotname/scoped-deprecated

Removed deprecated scoped method

Conflicts:
	activerecord/CHANGELOG.md
Removed deprecated methods partial_updates and family

Removed deprecated methods `partial_updates`, `partial_updates?` and
`partial_updates=`
Merge pull request #11221 from neerajdotname/partial_updates_family

Removed deprecated methods partial_updates and family
Merge pull request #11220 from aditya-kapoor/add-concern

Change Rails Migration generator module to use AS::Concern
remove deprecated `assert_present` and `assert_blank`.
Remove deprecated `:distinct` option from `Relation#count`.
Merge pull request #11226 from senny/remove_deprecated_distinct_option

Remove deprecated `:distinct` option from `Relation#count`.
Merge pull request #11224 from senny/remove_assert_blank_and_assert_present

remove deprecated `assert_present` and `assert_blank`.
remove deprecated `BufferedLogger`.
remove auto-explain-config deprecation warning
Remove `FormBuilder` deprecation warning about block argument and associated tests