Skip to content

Commit 0507001

Browse files
committed
* Add any attributes other than the hard-coded standard ones to the display. This is important for any gems that add columns to delayed jobs like https://github.com/codez/delayed_cron_job
1 parent 540f9e2 commit 0507001

File tree

1 file changed

+6
-0
lines changed
  • lib/delayed_job_web/application/views

1 file changed

+6
-0
lines changed

lib/delayed_job_web/application/views/job.erb

+6
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,11 @@
6060
<%=h job.failed_at %>
6161
</dd>
6262
<% end %>
63+
<% job.attribute_names.excluding('id', 'priority', 'attempts', 'queue', 'handler', 'last_error', 'run_at', 'locked_at', 'locked_by', 'failed_at').each do |column| %>
64+
<dt><%= column %></dt>
65+
<dd>
66+
<%=h eval("job.#{column}") %>
67+
</dd>
68+
<% end %>
6369
</dl>
6470
</li>

0 commit comments

Comments
 (0)