Forum: Ruby on Rails [ANN] Rails 4.0.1.rc1 has been released!

0525b332aafb83307b32d9747a93de03?d=identicon&s=25 "Rafael Mendonça França" <rafaelmfranca@gmail.com> (Guest)
on 2013-10-17 18:52
(Received via mailing list)
Hi everyone,

I am happy to announce that Rails 4.0.1.rc1 has been released. This is
a bug fix release and
includes more than 450 commits.

This release comes up with an important change on how Active Record
handles subsequent `order` calls.
In Rails 4.0.0 when you do something like this:

```ruby
User.order("name asc").order("created_at desc")
```

The later called `order` will be prepended in the ORDER BY clause
resulting on this SQL:

```sql
SELECT * FROM users ORDER BY created_at desc, name asc
```

In Rails 4.0.1 the behavior of Rails 3 has been restored and the
generated ORDER BY clause
looks like this:

```sql
SELECT * FROM users ORDER BY name asc, created_at desc
```

We chose to revert the behavior because it added a major backward
incompatibility that made
harder to have an upgrade path without major changes in the
application code. So we took the most
conservative path of reverting it to be consistent with the idea of
having a smoother upgrade path
to Rails 4.

Also, this release adds some performance improvements to make Rails 4
even faster.

If no regressions are found we will release 4.0.1 final final this
Tuesday, on October 22, 2013.
If you find one, please open an Issue on GitHub and mention me
(@rafaelfranca) on it,
so that we can fix it before the final release.

## CHANGES since 4.0.0

To view the changes for each gem, please read the changelogs on GitHub:

* [Action Mailer
CHANGELOG](https://github.com/rails/rails/blob/v4.0.1.rc1/act...)
* [Action Pack
CHANGELOG](https://github.com/rails/rails/blob/v4.0.1.rc1/act...)
* [Active Model
CHANGELOG](https://github.com/rails/rails/blob/v4.0.1.rc1/act...)
* [Active Record
CHANGELOG](https://github.com/rails/rails/blob/v4.0.1.rc1/act...)
* [Active Support
CHANGELOG](https://github.com/rails/rails/blob/v4.0.1.rc1/act...)
* [Railties
CHANGELOG](https://github.com/rails/rails/blob/v4.0.1.rc1/rai...)

*Full listing*

To see the full list of changes, [check out all the commits on
GitHub](https://github.com/rails/rails/compare/v4.0.0...v4.0.1.rc1).

## SHA-1

If you'd like to verify that your gem is the same as the one I've
uploaded,
please use these SHA-1 hashes:

* 482e0c05fb25ae9a8d261f301054fc182e7b4447  actionmailer-4.0.1.rc1.gem
* 4da9135cfc94be9fa2f25697247bacc5dad5a7ae  actionpack-4.0.1.rc1.gem
* 205ac4e9fa0be619f636d2947005796be6b8ad9a  activemodel-4.0.1.rc1.gem
* e2f1268614c91b9d9d4ca3dfecf2db5c59c10141  activerecord-4.0.1.rc1.gem
* 349fc20340fde7d36a755a2e739187659b082648  activesupport-4.0.1.rc1.gem
* 43b6b57d3c5eaeb2ac0bdea17e9c68a301293930  rails-4.0.1.rc1.gem
* f17137d25df9f10d6c1a3d31563c70cc82ad1525  railties-4.0.1.rc1.gem

I'd like to thank you all, every contributor who helped with this
release.


Rafael Mendona Frana
http://twitter.com/rafaelfranca
https://github.com/rafaelfranca
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.