search for: prune_lab_data

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

Did you mean: prune_lab_datas
2010 Mar 23
0
Frozen hash problem
I''d like to delete some records before saving them. I ran this experiment: before_save :prune_lab_datas def prune_lab_datas lab_datas.each do |lab_data| lab_data.destroy end raise lab_datas.to_yaml end But nothing seems to be deleted in the hash: --- - &id001 !ruby/object:LabData attributes: created_at: 2010-03-21 22:16:06 unit_id: "3" lab_id: &qu...