Thanks, cool!

I'm also agree with that (this option saw in sequel gem), will create PR 
for it.

On Thursday, August 1, 2013 8:21:31 AM UTC+3, Aaron Patterson wrote:
>
> On Thu, Aug 01, 2013 at 11:07:57AM +1200, Will Bryant wrote: 
> > It's not hard to implement an equivalent for mysql, to reverse where 
> nulls sort you just use ORDER by -x DESC instead of ORDER BY x ASC.  If 
> there's a proper API for it in AR then it should be easy enough to support 
> both ANSI and Mysql implementations. 
> > 
> > Dunno what the best API is, but I'd suggest something like order("x", 
> :nulls => :last).  Better than more and more string fudging IMHO. 
>
> I'd much rather it's an option than do string parsing. 
>
> -- 
> Aaron Patterson 
> http://tenderlovemaking.com/ 
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to