#261 √ resolved
Nathan Herald

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

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

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

Shared Ticket Bins

People watching this ticket

Tags