Be careful using default_scope and order()

Submitted by Christoph Olszowka 2012-04-06 14:29:27 UTC
Source:  http://pragdave.blogs.pragprog.com/pragdave/2012/03/be-careful-using-default_scope-and-order.html

Referenced projects

Ruby on Rails

Ruby on Rails is a full-stack web framework optimized for programmer happiness and sustainable productivity. It encourages beautiful code by favoring convention over configuration.

Rubygem rails

Total Downloads
34307575
Releases
190
Current Version
4.1.0
Released
2014-04-08 00:00:00 UTC
First Release
2004-10-25 04:00:00 UTC

Github rails/rails

Watchers
20812
Forks
7365
Development activity
Very active
Last commit
2014-02-16 18:01:09 UTC
Contributors
2188
Issues

Active Record

Databases on Rails. Build a persistent domain model by mapping database tables to Ruby classes. Strong conventions for associations, validations, aggregations, migrations, and testing come baked-in.

Rubygem activerecord

Total Downloads
31271101
Releases
187
Current Version
4.1.0
Released
2014-04-08 00:00:00 UTC
First Release
2004-10-25 04:00:00 UTC

Github rails/rails

Watchers
20812
Forks
7365
Development activity
Very active
Last commit
2014-02-16 18:01:09 UTC
Contributors
2188
Issues
×

In order to continue, you must be signed in using your Github account.

If you're signing in using this account for the first time Github will ask for your permission to give access to your public user data to the Ruby Toolbox.

Although the Github Authorization page does not mention it, the request includes read-only access to your verified email address (user:email OAuth scope). This is neccessary so there's a way to notify you about comments, information about your accepted project edits and the like. You can review your notification settings on your account page once you're signed in.