% app_hash = {} class_hash = {} event_hash = {} # collect each differently ::QueueBus::Application.all.each do |app| app_key = app.app_key app_hash[app_key] ||= [] app.event_display_tuples.each do |tuple| class_name, queue, filters = tuple if filters["bus_event_type"] event = filters["bus_event_type"] else event = "see filter" end app_hash[app_key] << [event, class_name, queue, filters] class_hash[class_name] ||= [] class_hash[class_name] << [app_key, event, queue, filters] event_hash[event] ||= [] event_hash[event] << [app_key, class_name, queue, filters] end end # sort each list item by secondary label class_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 classes and queues.
App Key | Event Type | Class Name | Queue | Filters |
---|
The events below have been registered by the given applications and queues.
Event Type | App Key | Class Name | Queue | Filters |
---|
The classes below have been registered by the given applications and queues.
Class Name | App Key | Event Type | Queue | Filters |
---|