Rails notifications are set through Railtie in each framework.

This commit is contained in:
José Valim
2010-01-02 22:25:51 +01:00
parent 08986ce290
commit 4c5b5024c3

View File

@@ -269,18 +269,5 @@ module Rails
ActiveSupport::Dependencies.unhook!
end
end
# For each framework, search for instrument file with Notifications hooks.
#
initializer :load_notifications_hooks do
frameworks = [ :active_record, :action_controller, :action_view,
:action_mailer, :active_resource ]
frameworks.each do |framework|
begin
require "#{framework}/notifications"
rescue LoadError => e
end
end
end
end
end