Conditional destroy

Hi all,I was wondering if there´s some way I could do something like:
@entity.destroy(:first,:conditions=>‘1=1’)

Is it possible?

Rafael R. wrote:

Hi all,I was wondering if there´s some way I could do something like:
@entity.destroy(:first,:conditions=>‘1=1’)

Is it possible?

Entity.destroy(Entity.find(:conditions…).collect {|e| e.id})

Best,

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