Flowdock
method

unsubscribe

Importance_0
Ruby on Rails latest stable (v4.2.1) - 0 notes - Class: ActiveSupport::Notifications::Fanout
unsubscribe(subscriber_or_name) 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/notifications/fanout.rb, line 28
      def unsubscribe(subscriber_or_name)
        synchronize do
          case subscriber_or_name
          when String
            @subscribers.reject! { |s| s.matches?(subscriber_or_name) }
          else
            @subscribers.delete(subscriber_or_name)
          end

          @listeners_for.clear
        end
      end
Register or log in to add new notes.