lib/resque_admin/server/views/queues.erb in resque_admin-1.0.4 vs lib/resque_admin/server/views/queues.erb in resque_admin-1.0.5

- old
+ new

@@ -39,19 +39,19 @@ <td class='queue'><a class="queue" href="<%= u "queues/#{queue}" %>"><%= queue %></a></td> <td class='size'><%= resque.size queue %></td> </tr> <% end %> <% if failed_multiple_queues? %> - <% Resque::Failure.queues.sort_by { |q| q.to_s }.each_with_index do |queue, i| %> - <tr class="<%= Resque::Failure.count(queue).zero? ? "failed" : "failure" %><%= " first_failure" if i.zero? %>"> + <% ResqueAdmin::Failure.queues.sort_by { |q| q.to_s }.each_with_index do |queue, i| %> + <tr class="<%= ResqueAdmin::Failure.count(queue).zero? ? "failed" : "failure" %><%= " first_failure" if i.zero? %>"> <td class='queue failed'><a class="queue" href="<%= u "failed/#{queue}" %>"><%= queue %></a></td> - <td class='size'><%= Resque::Failure.count(queue) %></td> + <td class='size'><%= ResqueAdmin::Failure.count(queue) %></td> </tr> <% end %> <% else %> - <tr class="<%= Resque::Failure.count.zero? ? "failed" : "failure" %>"> + <tr class="<%= ResqueAdmin::Failure.count.zero? ? "failed" : "failure" %>"> <td class='queue failed'><a class="queue" href="<%= u :failed %>">failed</a></td> - <td class='size'><%= Resque::Failure.count %></td> + <td class='size'><%= ResqueAdmin::Failure.count %></td> </tr> <% end %> </table> <% end %>