Files
danbooru/app/controllers/mod_actions_controller.rb
BrokenEagle d829ab3a00 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
2018-01-29 11:42:53 -08:00

9 lines
240 B
Ruby

class ModActionsController < ApplicationController
respond_to :html, :xml, :json
def index
@mod_actions = ModAction.search(params[:search]).paginate(params[:page], :limit => params[:limit])
respond_with(@mod_actions)
end
end