views:

245

answers:

1

Hi,

Some methods have been deprecated with Rails3. It is the case in particular with the following call !

Error.find(:all, :select => 'DISTINCT type')

Is anybody have an idea, how to convert this call to an ActiveRecord3 valid statement ?

I found nothing on the web ...

Thanks

+2  A: 

Just use the new select query method.

Error.select('DISTINCT type')
Samuel
Thanks for your answer.In fact, it was pretty simple !
Arkan