method
unsubscribe
v3.0.0 -
Show latest stable
- Class:
ActiveSupport::Notifications::Fanout
unsubscribe(subscriber)public
No documentation available.
# File activesupport/lib/active_support/notifications/fanout.rb, line 19
def unsubscribe(subscriber)
@subscribers.reject! {|s| s.matches?(subscriber)}
@listeners_for.clear
end