search for: hash_array

Displaying 2 results from an estimated 2 matches for "hash_array".

Did you mean: has_array
2008 Aug 01
1
duplicate entries on ext3 when using readdir/readdir64
Hello, I have a problem with directories that contain more than 10000 entries (Ubuntu 8.04.1) or with more than 70000 entries (RHEL 5.2). If you use readdir(3) or readdir64(3) you get one entry twice, with same name and inode. Some analyzing showed that disabling dir_index solves this problem, but I think that this is a bug in the ext3 code, as no other file-system shows this behavior.
2009 Oct 27
5
Unwanted call to validates_associated
..."millionaire_question_assets.position" has_many :answers, :class_name => "MillionaireAnswer", :order => "position", :dependent => :destroy #answer_ids= does not preserve the order so building them instead, which will set position correctly def answers=(hash_array) self.answers.clear hash_array.each do |hash| self.answers.build(hash) end end #need to preserve order AND set from path or id def assets=(hash_array) self.assets.clear hash_array.each do |hash| if !hash[:id].blank? asset = Asset.find_by_id(hash[:id])...