search for: tmp_destroy

Displaying 1 result from an estimated 1 matches for "tmp_destroy".

Did you mean: _m_destroy
2006 Nov 09
2
redefining the method belongs_to in ActiveRecord::Base
...ntent["content"].original_filename != "" if self.attachment self.attachment.update_attributes(content) else attach = Attachment.new(content) attach.save self.tmp_attach=(attach) end end end end alias :tmp_destroy :destroy def destroy attach = self.attachment self.tmp_destroy attach.destroy if attach end EOS module_eval(code) end end --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "R...