search for: add_pattern

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

Did you mean: a9_pattern
2006 Feb 06
4
Memory Issue while looping through CSV file
...tion => pattern_temp[10], :active => pattern_temp[11], :panel => pattern_temp[12] } puts "Processing #{pattern_record[:code]}..." pattern = Pattern.find_by_pattern_code(pattern_record[:code]) || Pattern.new if pattern_record[:active] == "Yes" add_pattern(pattern, pattern_record) # function elsif pattern_record[:active] == "No" and !pattern.new_record? puts "Removing #{pattern_record[:code]}..." Pattern.destroy(pattern.id) end end end