Skip to content

Commit

Permalink
Use model instead of controller instance variable
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosahs committed Jul 7, 2022
1 parent 89c2eeb commit e1eb136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/submissions/index.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

= panel title: Submission.model_name.human.pl, context: :primary do
.panel-body
- if can?(:rerun_all, @submissions)
- if can?(:rerun_all, Submission)
-# Disable button until all submissions finish rerunning
- if @submissions.any?{ |s| !s.checks_completed? }
%span{:class => "btn btn-default"}= 'Rerun Submissions'
Expand Down

0 comments on commit e1eb136

Please sign in to comment.