1
0

strikes_controller.rb 388 B

123456789101112131415161718192021
  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