Adds event subscribers
for all new methods
added to the class.
# File activesupport/lib/active_support/subscriber.rb, line 47
def method_added(event)
# Only public methods are added as subscribers, and only if a notifier
# has been set up. This means that subscribers will only be set up for
# classes that call #attach_to.
if public_method_defined?(event) && notifier
add_event_subscriber(event)
end
end