#493 ✓resolved
Matt Jones

set_default_order plays poorly with scopes that define order

Reported by Matt Jones | August 24th, 2009 @ 08:29 PM | in Hobo 1.0 - Final

The order set by set_default_order overwrites any order set in a named_scope; so a model that declares:

set_default_order('last_name')

and has a named_scope:

named_scope :by_foo, :order => 'foo DESC'

Won't work correctly. Need to investigate further, as I seem to think this does work sometimes...

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Tags

Referenced by

Pages