From 37e1c72ce0a979cfc2702e3a85e2ac5d7f21f358 Mon Sep 17 00:00:00 2001 From: Alinson Santos Date: Tue, 11 Mar 2008 09:22:46 -0300 Subject: [PATCH] Log: ordenacao --- app/controllers/log_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/log_controller.rb b/app/controllers/log_controller.rb index 4fc04a6..8317a72 100644 --- a/app/controllers/log_controller.rb +++ b/app/controllers/log_controller.rb @@ -22,7 +22,7 @@ class LogController < ApplicationController if @course @log_entries = @course.log_entries.find(:all, :limit => 50) #.paginate(:page => params[:page], :per_page => 30) else - @log_entries = LogEntry.find(:all, :limit => 50) + @log_entries = LogEntry.find(:all, :limit => 50, :order => 'created_at desc') end respond_to do |format|