Rails 4.1 branch

--HG--
branch : ../sandbox/rails-4.1
extra : convert_revision : svn%3Ae93f8b46-1217-0410-a6f0-8f06a7374b81/sandbox/rails-4.1%4013232
Test suite passes with Rails 4.1.

--HG--
branch : ../sandbox/rails-4.1
extra : convert_revision : svn%3Ae93f8b46-1217-0410-a6f0-8f06a7374b81/sandbox/rails-4.1%4013233
Fixed error on Project.rebuild_tree! during migration (#14534).

--HG--
branch : ../sandbox/rails-4.1
extra : convert_revision : svn%3Ae93f8b46-1217-0410-a6f0-8f06a7374b81/sandbox/rails-4.1%4013234
Fixed default admin account creation during migration (#14534).

--HG--
branch : ../sandbox/rails-4.1
extra : convert_revision : svn%3Ae93f8b46-1217-0410-a6f0-8f06a7374b81/sandbox/rails-4.1%4013235
Preload project by default in #shared_versions.

--HG--
branch : ../sandbox/rails-4.1
extra : convert_revision : svn%3Ae93f8b46-1217-0410-a6f0-8f06a7374b81/sandbox/rails-4.1%4013236
awesome_nested_set: import master branch source

https://github.com/collectiveidea/awesome_nested_set/commit/f823ffb304ccf5ca9c4f14b60ff1f45ad2c3f440

--HG--
branch : ../sandbox/rails-4.1
extra : convert_revision : svn%3Ae93f8b46-1217-0410-a6f0-8f06a7374b81/sandbox/rails-4.1%4013237
add lib/plugins/awesome_nested_set/init.rb

--HG--
branch : ../sandbox/rails-4.1
extra : convert_revision : svn%3Ae93f8b46-1217-0410-a6f0-8f06a7374b81/sandbox/rails-4.1%4013238
graft trunk r13148 "not use cache for max rgt"

--HG--
branch : ../sandbox/rails-4.1
extra : convert_revision : svn%3Ae93f8b46-1217-0410-a6f0-8f06a7374b81/sandbox/rails-4.1%4013239
.travis.yml: remove Ruby 1.8.7

--HG--
branch : ../sandbox/rails-4.1
extra : convert_revision : svn%3Ae93f8b46-1217-0410-a6f0-8f06a7374b81/sandbox/rails-4.1%4013240
fix "connection" at IssueQuery model

--HG--
branch : ../sandbox/rails-4.1
extra : convert_revision : svn%3Ae93f8b46-1217-0410-a6f0-8f06a7374b81/sandbox/rails-4.1%4013241
config: remove config.whiny_nils from test and development environments

On Rails 4.0:

DEPRECATION WARNING: config.whiny_nils option is deprecated and no longer works.

--HG--
branch : ../sandbox/rails-4.1
extra : convert_revision : svn%3Ae93f8b46-1217-0410-a6f0-8f06a7374b81/sandbox/rails-4.1%4013242
db migrate: remove Relation#all from 20100819172912_enable_calendar_and_gantt_modules_where_appropriate.rb

On Rails4.0:

DEPRECATION WARNING: Relation#all is deprecated.
If you want to eager-load a relation, you can call #load (e.g. `Post.where(published: true).load`).
If you want to get an array of records from a relation,
you can call #to_a (e.g. `Post.where(published: true).to_a`).

--HG--
branch : ../sandbox/rails-4.1
extra : convert_revision : svn%3Ae93f8b46-1217-0410-a6f0-8f06a7374b81/sandbox/rails-4.1%4013243
Gemfile: upgrade shoulda 3.5.0

This shoulda version is not support Ruby 1.8.7.

--HG--
branch : ../sandbox/rails-4.1
extra : convert_revision : svn%3Ae93f8b46-1217-0410-a6f0-8f06a7374b81/sandbox/rails-4.1%4013244
Gemfile: remove version from shoulda

--HG--
branch : ../sandbox/rails-4.1
extra : convert_revision : svn%3Ae93f8b46-1217-0410-a6f0-8f06a7374b81/sandbox/rails-4.1%4013245
Gemfile: remove version from mocha

--HG--
branch : ../sandbox/rails-4.1
extra : convert_revision : svn%3Ae93f8b46-1217-0410-a6f0-8f06a7374b81/sandbox/rails-4.1%4013246
remove unneeded Relation#all from ProjectTest

--HG--
branch : ../sandbox/rails-4.1
extra : convert_revision : svn%3Ae93f8b46-1217-0410-a6f0-8f06a7374b81/sandbox/rails-4.1%4013247
replace Relation#all

On Rails4.0:

DEPRECATION WARNING: Relation#all is deprecated.
If you want to eager-load a relation, you can call #load (e.g. `Post.where(published: true).load`).
If you want to get an array of records from a relation,
you can call #to_a (e.g. `Post.where(published: true).to_a`).

--HG--
branch : ../sandbox/rails-4.1
extra : convert_revision : svn%3Ae93f8b46-1217-0410-a6f0-8f06a7374b81/sandbox/rails-4.1%4013248
use references

On Rails 4.0:

<pre>
DEPRECATION WARNING: It looks like you are eager loading table(s) (one of: issues, projects, em)
that are referenced in a string SQL snippet. For example:

    Post.includes(:comments).where("comments.title = 'foo'")

Currently, Active Record recognizes the table in the string, and knows to JOIN the comments table to the query,
rather than loading comments in a separate query.
However, doing this without writing a full-blown SQL parser is inherently flawed.
Since we don't want to write an SQL parser, we are removing this functionality.
From now on, you must explicitly tell Active Record when you are referencing a table from a string:

    Post.includes(:comments).where("comments.title = 'foo'").references(:comments)

If you don't rely on implicit join references you can disable the feature entirely
by setting `config.active_record.disable_implicit_join_references = true`.
</pre>

--HG--
branch : ../sandbox/rails-4.1
extra : convert_revision : svn%3Ae93f8b46-1217-0410-a6f0-8f06a7374b81/sandbox/rails-4.1%4013249
replace Relation#all

On Rails4.0:

DEPRECATION WARNING: Relation#all is deprecated.
If you want to eager-load a relation, you can call #load (e.g. `Post.where(published: true).load`).
If you want to get an array of records from a relation,
you can call #to_a (e.g. `Post.where(published: true).to_a`).

--HG--
branch : ../sandbox/rails-4.1
extra : convert_revision : svn%3Ae93f8b46-1217-0410-a6f0-8f06a7374b81/sandbox/rails-4.1%4013250
replace Relation#all

On Rails4.0:

DEPRECATION WARNING: Relation#all is deprecated.
If you want to eager-load a relation, you can call #load (e.g. `Post.where(published: true).load`).
If you want to get an array of records from a relation,
you can call #to_a (e.g. `Post.where(published: true).to_a`).

--HG--
branch : ../sandbox/rails-4.1
extra : convert_revision : svn%3Ae93f8b46-1217-0410-a6f0-8f06a7374b81/sandbox/rails-4.1%4013251