You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
388 B

  1. # frozen_string_literal: true
  2. class Disputes::StrikesController < Disputes::BaseController
  3. before_action :set_strike, only: [:show]
  4. def index
  5. @strikes = current_account.strikes.latest
  6. end
  7. def show
  8. authorize @strike, :show?
  9. @appeal = @strike.appeal || @strike.build_appeal
  10. end
  11. private
  12. def set_strike
  13. @strike = AccountWarning.find(params[:id])
  14. end
  15. end