delayed jobs: fix exception on index page.
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
<%= time_ago_in_words_tagged(job.run_at) %>
|
||||
<% end %>
|
||||
<% t.column column: "control" do |job| %>
|
||||
<% if policy(job).update? %>
|
||||
<% if DelayedJobPolicy.new([CurrentUser.user, request], job).update? %>
|
||||
<% if job.locked_at? %>
|
||||
Running
|
||||
<% elsif job.failed? %>
|
||||
|
||||
Reference in New Issue
Block a user