Remove conditional, since results are always an instance of `ActiveRecord::Result`
Avoid defining multibyte method names in JSON decoding test for JRuby Compat

This change is similar to #11736 & in same way switched with fixed string & the index of the hash for method name. the index was added because otherwise, ruby will raise Error.
Merge pull request #11789 from gaurish/multibyte_methods

Avoid defining multibyte method names in JSON decoding test for JRuby Compatitibility
Fix multidimensional PG arrays containing non-string items
use `skip` so we can see what tests are not run
Merge pull request #11331 from vipulnsward/remove_conditional

Remove conditional, results are always an instance of `ActiveRecord::Result`
cast hstore values on write to be consistent with reading from the db.
Set field encoding to client_encoding for mysql adapter.
Merge pull request #11802 from ko1/fix_field_encoding_for_mysql

Set field encoding to client_encoding for mysql adapter.
Remove using of suffix with term. [ci skip]
Merge pull request #11806 from jetthoughts/change_model_term_by_simple_word

Remove using of suffix with term. [ci skip]
Add `#any_of` query method to active_record

This method is inspired by [any_of from
mongoid](http://two.mongoid.org/docs/querying/criteria.html#any_of).

It allows to compute an `OR` like query that leverages AR's `#where` syntax:

    manual_removal = User.where(id: params[:users][:destroy_ids])
    users = User.any_of(manual_removal, "email like '%@example.com'", {banned: true}).destroy_all

It can be used directly on model class, or through an association, or
behind an other relation.

    manual_removal = User.where(id: params[:users][:destroy_ids])
    User.any_of(manual_removal, "email like '%@example.com'", {banned: true})
    @company.users.any_of(manual_removal, "email like '%@example.com'", {banned: true})
    User.where(offline: false).any_of( manual_removal, "email like '%@example.com'", {banned: true})

Its main purpose is to both :

* remove the need to write a sql string when we want an `OR`
* allow to write dynamic `OR` queries, which would be a pain with a string

There's also a negative version, `#none_of`. This will return all active
users :

    banned_users = User.where(banned: true)
    unconfirmed_users = User.where("confirmed_at IS NULL")
    active_users = User.none_of(banned_users, unconfirmed_users)