class ActiveSupport::Subscriber
def attach_to(namespace, subscriber=new, notifier=ActiveSupport::Notifications)
def attach_to(namespace, subscriber=new, notifier=ActiveSupport::Notifications) subscribers << subscriber subscriber.public_methods(false).each do |event| next if %w{ start finish }.include?(event.to_s) notifier.subscribe("#{event}.#{namespace}", subscriber) end end