Log: ordenacao
This commit is contained in:
@@ -22,7 +22,7 @@ class LogController < ApplicationController
|
|||||||
if @course
|
if @course
|
||||||
@log_entries = @course.log_entries.find(:all, :limit => 50) #.paginate(:page => params[:page], :per_page => 30)
|
@log_entries = @course.log_entries.find(:all, :limit => 50) #.paginate(:page => params[:page], :per_page => 30)
|
||||||
else
|
else
|
||||||
@log_entries = LogEntry.find(:all, :limit => 50)
|
@log_entries = LogEntry.find(:all, :limit => 50, :order => 'created_at desc')
|
||||||
end
|
end
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|||||||
Reference in New Issue
Block a user