Files
danbooru/app/controllers/mod_actions_controller.rb
evazion a7dc05ce63 Enable frozen string literals.
Make all string literals immutable by default.
2021-12-14 21:33:27 -06:00

20 lines
515 B
Ruby

# frozen_string_literal: true
class ModActionsController < ApplicationController
respond_to :html, :xml, :json
def index
@mod_actions = ModAction.visible(CurrentUser.user).paginated_search(params)
@mod_actions = @mod_actions.includes(:creator) if request.format.html?
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