search for: find_by_pattern_cod

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

Did you mean: find_by_pattern_code
2006 Feb 06
4
Memory Issue while looping through CSV file
...emp[7], :bundle_with_code => pattern_temp[8], :matrix => pattern_temp[9], :description => 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(...