search for: attr_cach

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

Did you mean: attr_cache
2006 Sep 26
4
Some documents not found
...} Vandelay::Keyword.find_by_sql(["select productId, term from product_keywords where productId in (?)", ids]).each {|kw| sym = kw.productId.to_sym kwcache[sym] = [] if !kwcache[sym] kwcache[sym] << kw.term } # pre-cache all the attribute values for the products attr_cache = {} Vandelay::ProductStringAttribute.find_by_sql(["select productId, name, value from product_stringattribute where productId in (?)", ids]).each {|a| sym = a.productId.to_sym attr_cache[sym] = [] if !attr_cache[sym] attr_cache[sym] << a } Vandelay::ProductBool...