提交 4c5b5024 编写于 作者: J José Valim

Rails notifications are set through Railtie in each framework.

上级 08986ce2
......@@ -269,18 +269,5 @@ def call(env)
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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册