mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Rails notifications are set through Railtie in each framework.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user