
Order properties don't reflect what :field was set to
Reported by Nathan Herald | May 8th, 2008 @ 12:18 PM
Doing something like:
property :name, String, :field => 'not_name'
Will error if you do this query:
Model.first :order => [:name.desc]
because it actually puts 'name DESC' instead of not_name. If you try:
Model.first :order => [:not_name.desc]
it doesn't work because not_name is not a property.
Comments and changes to this ticket
-
-
Sam Smoot May 8th, 2008 @ 02:21 PM
- State changed from new to resolved
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »