Use #model_name on instances instead of classes

This allows rails code to be more confdent when asking for a model name, instead of having to ask for the class.

Rails core discussion here: https://groups.google.com/forum/#!topic/rubyonrails-core/ThSaXw9y1F8
Add a test case of nested empty array values in conditions

  Post.where(id: [[]]).to_a

Used to fail with a SQL syntax error (until 4.1):

  SELECT ... WHERE id in ();

It now properly generate:

  SELECT ... WHERE 1=0;
Merge pull request #15889 from carnesmedia/model-name

Use #model_name on instances instead of classes
No need to check model_name anymore
Fix ActiveJob isolation tests.
Merge pull request #16534 from lucasmazza/lm-fix-rescue-test

Fix ActiveJob isolation tests.
Expectations first
Expectations first
Fix rails-html_sanitizer in Gemfile template

[skip ci]
Merge pull request #16540 from jonatack/patch-9

Fix rails-html_sanitizer in Gemfile template
"warning: `*' interpreted as argument prefix"
Merge pull request #16528 from byroot/add-test-case-for-nested-array-in-where-conditions

Add a test case of nested empty array values in conditions
Sync railties release notes [ci skip]
Check attributes passed to create_with and where

If the request parameters are passed to create_with and where they can
be used to do mass assignment when used in combination with
Relation#create.

Fixes CVE-2014-3514

Conflicts:
	activerecord/lib/active_record/relation/query_methods.rb
Sync action pack release notes [ci skip]
:nail_care: [ci skip]
Use the released beta of i18n
Add option to stop swallowing errors on callbacks.

Currently, Active Record will rescue any errors raised within
after_rollback/after_create callbacks and print them to the
logs. Next versions of rails will not rescue those errors anymore,
and just bubble them up, as the other callbacks.

This adds a opt-in flag to enable that behaviour, of not rescuing
the errors.
    Example:
      # For not swallow errors in after_commit/after_rollback
      config.active_record.errors_in_transactional_callbacks = true

[fixes #13460]
No need to point to arel and i18n master anymore
Fix assertion to map the behaviour of the old sanitizer