Ok, I implemented "order_by_sql" method...

Em quarta-feira, 18 de abril de 2012 18h18min47s UTC-3, Frederico Hahn 
Pesenti escreveu:
>
> Guys, 
> how can I set the query (all, first, etc) order to something like 
> "ifnull(column1, column2) asc", I just can "order => 
> [:column1.asc, :column2.asc]", but it does't work for null columns. 
> Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/datamapper/-/K04o7pn-moIJ.
To post to this group, send email to datamapper@googlegroups.com.
To unsubscribe from this group, send email to 
datamapper+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to