# frozen_string_literal: true # Actualiza la relaciĆ³n entre un sitio y una instancia class InstanceModerationsController < ApplicationController before_action :authorize_policy def pause instance_moderation.pause! redirect_to site_moderation_queue_path end def allow instance_moderation.allow! redirect_to site_moderation_queue_path end def block instance_moderation.block! redirect_to site_moderation_queue_path end private # @return [InstanceModeration] def instance_moderation @instance_moderation ||= site.instance_moderations.find(params[:instance_moderation_id]) end def authorize_policy authorize instance_moderation end end