Changed ActiveRecord::Associations::CollectionProxy#select to take multiple arguments.

This makes the arguments the same as ActiveRecord::QueryMethods::select.
Maintain proleptic gregorian in Time#advance

Time#advance uses Time#to_date and Date#advance to calculate a new date.
The Date object returned by Time#to_date is constructed with the assumption
that the Time object represents a proleptic gregorian date, but it is
configured to observe the default julian calendar reform date (2299161j)
for purposes of calculating month, date and year:

  Time.new(1582, 10, 4).to_date.to_s           # => "1582-09-24"
  Time.new(1582, 10, 4).to_date.gregorian.to_s # => "1582-10-04"

This patch ensures that when the intermediate Date object is advanced
to yield a new Date object, that the Time object for return is contructed
with a proleptic gregorian month, date and year.
Fix stream closing when sending file with `ActionController::Live` included.

Fixes #12381
Allows you to check if an attribute has changed to a particular value

model.name_changed?(from: "Pete", to: "Ringo")
[ci skip] trailing documentation whitespace
Fix few typos and improve markup at some levels
Raise NoDatabaseError when db does not exist

Building on the work of #13427 this PR adds a helpful error message to the adapters: mysql, mysql2, and sqlite3
Better missing `secret_key_base` error message

Previously the error was:

```
RuntimeError: You must set secret_key_base in your app's config
```

Will now be:


```
RuntimeError: Missing `secret_key_base` for 'production' environment, set this value in `config/secrets.yml`
```
Fix railties tests in master

Tests are failing due to missing env var on master https://travis-ci.org/rails/rails/jobs/15930622#L641

This adds an environment variable `ENV['RAILS_SECRET_KEY_BASE']` so these tests will pass.
Merge pull request #13469 from schneems/schneems/no-database-errors-all

Raise NoDatabaseError when db does not exist
Merge pull request #13471 from schneems/schneems/better-secrets-error-message

Better missing `secret_key_base` error message
Merge pull request #13472 from schneems/schneems/fix-master-database-url-tests

Fix railties tests in master
Revert "Ensure secret_key_base is set for all environments"

A better solution has been pushed to master.

This reverts commit 959cfcef7255bba720ce3f15323056533ea7b50a.
Move mysql2 test for when adapter will be loaded

When run with only the Mysql adapter, we get this failure: https://travis-ci.org/rails/rails/jobs/15937907#L2416

Porting the test over to only run when mysql2 is loaded
Unused class in AV test
Unused classes in AP tests
using symbol instead of string in establish_connection
Merge pull request #13480 from kuldeepaggarwal/f-removed-depricated-config

using symbol instead of string in establish_connection
Typo rectified commom => common[ci skip]
Merge pull request #13482 from aayushkhandelwal11/typo

Typo rectified commom => common[ci skip]