about summary refs log tree commit diff
path: root/app/controllers/disputes/strikes_controller.rb
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-03-02 19:11:17 +0100
committerGitHub <noreply@github.com>2022-03-02 19:11:17 +0100
commitd9e30efa5ecc87bc9be7b2e28baaf34bd01032f5 (patch)
treea2bb52cd8418feb062b908dfaf98d00a3c0ccbbe /app/controllers/disputes/strikes_controller.rb
parent0b8fe020b599341d78cc03431eb156485c70ebea (diff)
parent78781793d5ab370829d7eaee4b8d21994f84763c (diff)
Merge pull request #1709 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/controllers/disputes/strikes_controller.rb')
-rw-r--r--app/controllers/disputes/strikes_controller.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/disputes/strikes_controller.rb b/app/controllers/disputes/strikes_controller.rb
index d41c5c727..d85dcb4d5 100644
--- a/app/controllers/disputes/strikes_controller.rb
+++ b/app/controllers/disputes/strikes_controller.rb
@@ -1,7 +1,11 @@
 # frozen_string_literal: true
 
 class Disputes::StrikesController < Disputes::BaseController
-  before_action :set_strike
+  before_action :set_strike, only: [:show]
+
+  def index
+    @strikes = current_account.strikes.latest
+  end
 
   def show
     authorize @strike, :show?