Hi all,I was wondering if there´s some way I could do something like: @entity.destroy(:first,:conditions=>''1=1'') Is it possible? -- Posted via http://www.ruby-forum.com/.
Rafael Roque 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 marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.