Move all order logic to models
- Have a default order for each model -- The overall default is ID DESC - Allow for custom orderings -- When comma-separated IDs are used
This commit is contained in:
@@ -2,7 +2,7 @@ class ModActionsController < ApplicationController
|
||||
respond_to :html, :xml, :json
|
||||
|
||||
def index
|
||||
@mod_actions = ModAction.search(params[:search]).order("id desc").paginate(params[:page], :limit => params[:limit])
|
||||
@mod_actions = ModAction.search(params[:search]).paginate(params[:page], :limit => params[:limit])
|
||||
respond_with(@mod_actions)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user