Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

Arik Fraimovich's latest activity

Saturday, March 05 2011
6532 default_scope doesn't let override the order was updated in Ruby on Rails
  • Arik Fraimovich
    Arik Fraimovich commented at 8:44 AM
  • Arik Fraimovich
    Arik Fraimovich created the ticket at 8:32 AM

    I have the following code:

    class Post < ActiveRecord::Base
      default_scope :order => 'created_at DESC'
    
      has_many :replies, :class_name => 'Post', :foreign_ke...