Permalink
Browse files

Recent updates on index page now shows multiple edits of the same var.

  • Loading branch information...
1 parent efaa9ab commit db494e408c752ee6013ba2f756ef518fec474668 @zk committed Oct 24, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/controllers/application_controller.rb
@@ -39,7 +39,8 @@ def find_recently_updated(size, lib = nil)
if not lib
comments = Comment.find(:all, :limit => size, :order => 'updated_at DESC')
- examples = Example.find(:all, :limit => size, :order => 'updated_at DESC')
+ examples = Example.find_by_sql(["select * from example_versions order by updated_at DESC limit ?", size])
+# raise examples.to_yaml
see_alsos = SeeAlso.find(:all, :limit => size, :order => 'updated_at DESC')
else

0 comments on commit db494e4

Please sign in to comment.