update Rails::Railtie::Configuration and ActionDispatch::Response#respond_to? to accept include_private argument
upgrade jruby dependencies
Merge pull request #12095 from kassio/upgrade-jruby-gems

Upgrade jruby dependencies
Do not dup the binds when visiting the AST

The visitor have to consume the bind parameters to make the statements
work when the prepared statement option is disabled.

Fixes #12023
Revert "reconnect after the fork returns"

This reverts commit baf5f47b8768c7ec0164ed5ab60e369cdd936d71.

Reason: This is breaking the sqlite3 tests with a missing transacion.
Could not investigate right now.

cc @tenderlove
Don't need to check if the scope respond to call

We are checking this when defining the default scope and raising an
ArgumentError
Revert "Do not dup the binds when visiting the AST"

This reverts commit 71ff7d9c6592b93e2c810a1f464943dd7bd02c7f.

Reason: I need to check with @jeremy if we can do this.
clear all connections before forking
Merge pull request #11912 from jonkessler/respond-to-signature-fixes

Update Rails::Railtie::Configuration and ActionDispatch::Response#respond_to? to accept include_private argument
Remove unused delegate

Related with commit 4a2a504
Merge pull request #12097 from kassio/remove-unused-delegate-on-railtie

Remove unused delegate
Reuse variable to avoid symbol usage
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 is hooked on `WhereChain`, just like `#not`, and allows to compute an
`OR` like query that leverages AR's `#where` syntax:

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

It can be used anywhere `#where` is expected to work :

    manual_removal = User.where(id: params[:users][:destroy_ids])
    User.where.any_of(manual_removal, "email like '%@example.com'", {banned: true})
    @company.users.where.any_of(manual_removal, "email like '%@example.com'", {banned: true})
    User.where(offline: false).where.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.where.none_of(banned_users, unconfirmed_users)