% app_hash = {} event_hash = {} # collect each differently ResqueBus::Application.all.each do |app| app_key = app.app_key app_hash[app_key] ||= [] app.event_display_tuples.each do |tuple| event, queue = tuple app_hash[app_key] << [event, queue] event_hash[event] ||= [] event_hash[event] << [app_key, queue] end end # sort each list item by secondary label event_hash.each do |_, array| array.sort!{ |a,b| a.first <=> b.first } end event_hash.each do |_, array| array.sort!{ |a,b| a.first <=> b.first } end # helper to display either def display_row(name, val, button=nil, first=false) form = "" if button text, url = button form = "
" end if !val out = "The apps below have registered the given event types and queues.
App Key | Event Type | Queue |
---|
The event types below have been registered by the given applications and queues.
Event Type | App Key | Queue |
---|