Leaving the #order call in #last_three_comments caused the generated SQL to have two conflicting ORDER BY components, which caused the query to return invalid results. I removed the problem by removing #last_three_comments which I consider a premature optimization. |
||
|---|---|---|
| .. | ||
| chubbies | ||
| controllers | ||
| fixtures | ||
| helpers | ||
| integration | ||
| javascripts | ||
| lib | ||
| mailers | ||
| models | ||
| multi_server | ||
| shared_behaviors | ||
| support | ||
| views/featured_users | ||
| factories.rb | ||
| helper_methods.rb | ||
| misc_spec.rb | ||
| parallel_spec.opts | ||
| spec_helper.rb | ||