Skip to content

Commit

Permalink
Avoid problems if there are no queues present
Browse files Browse the repository at this point in the history
  • Loading branch information
ejschmitt committed Feb 14, 2012
1 parent f69f8e4 commit 5658959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/delayed_job_web/application/views/job.haml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
%dd= job.priority
%dt Attempts
%dd= job.attempts
- if job.queue
- if job.respond_to?(:queue) && job.queue

This comment has been minimized.

Copy link
@ashmckenzie

ashmckenzie Feb 15, 2012

Ahh that's a much better approach thanks, I for some reason just assumed that queues would always be available. Thanks.

%dt Queue
%dd= job.queue
%dt Handler
Expand Down

0 comments on commit 5658959

Please sign in to comment.