Files
danbooru/app/controllers/mod_actions_controller.rb
2019-08-19 00:46:31 -05:00

16 lines
445 B
Ruby

class ModActionsController < ApplicationController
respond_to :html, :xml, :json
def index
@mod_actions = ModAction.includes(:creator).search(search_params).paginate(params[:page], limit: params[:limit])
respond_with(@mod_actions)
end
def show
@mod_action = ModAction.find(params[:id])
respond_with(@mod_action) do |fmt|
fmt.html { redirect_to mod_actions_path(search: { id: @mod_action.id }) }
end
end
end