search for: find_docu

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

Did you mean: find_done
2006 Mar 03
7
Meta Programming Help
...) # convert to symbol in case it is not (most commonly it may be a String) mode = mode.to_sym case mode when :all, :first ProductFile::find(mode, :conditions => ["product_id = ? AND file_type LIKE ?", prod_id, "image%"]) end end def ProductFile::find_documents(mode, prod_id) mode = mode.to_sym case mode when :all, :first ProductFile::find(mode, :conditions => ["product_id = ? AND (file_type LIKE ? or file_type LIKE ?)", prod_id, "%pdf", "%msword"]) end end Is it possible to create one meta-met...