Flowdock
method

attach_to

Importance_0
Ruby on Rails latest stable (v4.1.8) - 0 notes - Class: ActiveSupport::LogSubscriber

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

These similar methods exist in v4.1.8:

attach_to(namespace, log_subscriber=new, notifier=ActiveSupport::Notifications) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/log_subscriber.rb, line 59
      def attach_to(namespace, log_subscriber=new, notifier=ActiveSupport::Notifications)
        log_subscribers << log_subscriber
        @@flushable_loggers = nil

        log_subscriber.public_methods(false).each do |event|
          next if 'call' == event.to_s

          notifier.subscribe("#{event}.#{namespace}", log_subscriber)
        end
      end
Register or log in to add new notes.