Hi all,I was wondering if there´s some way I could do something like:
@entity.destroy(:first,:conditions=>‘1=1’)
Is it possible?
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})
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs