Added Rails 4.0.0 version from rails-4.0.0 branch.