Colin Law wrote in post #965883:
> On 2 December 2010 11:18, reu <[email protected]> wrote:
>> Not that I think that this is the best way, actually, thats probably
>> the worst, but on the same time, it is the easier:
>>
>> /ORDER BY column/ =~ Model.your_scope.to_sql
>
> I had not thought of doing something like that.  Thanks
>
> Colin

That was kind of in the back of my mind, but I had somehow forgotten 
about to_sql.  Just don't make the regex too exacting...

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Sent from my iPhone

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to